MCPHerramientas MCP/Conexiones/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.

Parámetros
platform"google" | "facebook"obligatorio
The platform: "google" or "facebook" (required).
caIdstringobligatorio
The id of the already-connected account to pair (required, from list_connected_accounts).
locationIdstringobligatorio
The location to assign this listing to (required, from list_locations).
platformResourceNamestringobligatorio
The listing's resource name/id on the platform (required).
platformPageNamestringobligatorio
The listing's display name on the platform (required).
Solicitud de ejemplo
{
  "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"
    }
  }
}
Respuesta de ejemplo
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

La forma de la respuesta se muestra a modo ilustrativo — el contenido real depende de la herramienta y de tus datos.