MCPMCP-Tools/Verbindungen/assign_listing_to_location
assign_listing_to_location
Writeconnections:write
Pair an already-connected account's already-fetched listing to a location that has no connection of its own yet. This is NOT a fresh OAuth grant — caId must already be a connected account (from list_connected_accounts); it just reuses that login. Google and Facebook only. Identify the listing by platformResourceName + platformPageName (from the account's fetched listings). To repoint an EXISTING location connection to a different listing on the same account, use reassign_location_connection instead.
Parameter
platform"google" | "facebook"erforderlich
The platform: "google" or "facebook" (required).
caIdstringerforderlich
The id of the already-connected account to pair (required, from list_connected_accounts).
locationIdstringerforderlich
The location to assign this listing to (required, from list_locations).
platformResourceNamestringerforderlich
The listing's resource name/id on the platform (required).
platformPageNamestringerforderlich
The listing's display name on the platform (required).
Beispielanfrage
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "assign_listing_to_location",
"arguments": {
"platform": "google",
"caId": "string",
"locationId": "string",
"platformResourceName": "string",
"platformPageName": "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.