MCPMCP-Tools/Kunden/get_google_listings
get_google_listings
Readclients:read
Browse the Google locations that have been fetched for a connected account (call trigger_google_fetch first if none are available). With no folder, returns the list of Google Business account folders (each with a location count). With a folder, returns that folder's locations — each with its fetchedListingId, resource name, name, address, verification state, whether it's already imported (connected), and whether its category maps to a supported one. Pass the fetchedListingIds you want to create_location_from_google. Optionally filter a folder by search text. You don't pass an agency — it comes from your credentials.
Parameter
clientIdstringerforderlich
The client that owns the Google account (from list_clients).
connectionIdstringerforderlich
The Google account to browse (from list_google_accounts).
folderstringoptional
A folder id from the folder list. Omit to get the folder list first.
searchstringoptional
Filter a folder's locations by name, address, or postal code.
Beispielanfrage
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_google_listings",
"arguments": {
"clientId": "string",
"connectionId": "string"
}
}
}Beispielantwort
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "..."
}
]
}
}Die Antwortform dient nur zur Veranschaulichung — der tatsächliche Inhalt hängt vom Tool und Ihren Daten ab.