MCPOutils MCP/Médias/list_google_location_media

list_google_location_media

Readmedia:read

List the Google Business Profile photos already STORED for locations: owner-uploaded (kind "owner") and customer-contributed (kind "ugc"). Returns each photo's Google URL, full Google media id, Google category (or null), kind, when it was uploaded to Google (uploadedAt), its caption, size and view count, the customer who posted it (customer photos only), the location it belongs to, and the stored coverage/freshness of the last Google refresh (null means unknown or never attempted, never "complete"). Stored-only: it never calls Google or starts a sync (use fetch_gbp_media to refresh). Pass locationId for one location, clientId for one client; filter by kind, category and upload date (uploadedAfter/uploadedBefore); sort=uploaded for newest Google uploads first; page with the returned nextCursor.

Paramètres
locationIdstringfacultatif
Location id (any form from list_locations). Omit to read every location you can access. Accepts the database ID or public loc- ID. IDs must belong to the authenticated agency and permitted client.
clientIdstringfacultatif
Client id (from list_clients) to scope to. Must own locationId when both are given. Accepts the database ID or public cli- ID. IDs must belong to the authenticated agency and permitted client.
kind"owner" | "ugc"facultatif
owner = business-uploaded photos, ugc = customer-contributed photos. Omit for both.
categorystringfacultatif
Google category, or several comma-separated (e.g. EXTERIOR,TEAMS). Case-insensitive.
uploadedAfterstringfacultatif
Only photos uploaded to Google at or after this ISO date/time (e.g. 2026-01-01).
uploadedBeforestringfacultatif
Only photos uploaded to Google before this ISO date/time.
sort"recent" | "uploaded"facultatif
recent (default) = newest stored first; uploaded = newest Google upload first.
limitnumberfacultatif
Page size, a whole number from 1 to 100. Default 50.
cursorstringfacultatif
nextCursor from the previous page. Only valid with the same filters.
Exemple de requête
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_google_location_media",
    "arguments": {
      "locationId": "loc_456",
      "kind": "owner",
      "limit": 25
    }
  }
}
Exemple de réponse
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

La forme de la réponse est indicative — le contenu réel dépend de l'outil et de vos données.