MCPFerramentas MCP/Conexões/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"obrigatório
The platform: "google" or "facebook" (required).
caIdstringobrigatório
The id of the already-connected account to pair (required, from list_connected_accounts).
locationIdstringobrigatório
The location to assign this listing to (required, from list_locations).
platformResourceNamestringobrigatório
The listing's resource name/id on the platform (required).
platformPageNamestringobrigatório
The listing's display name on the platform (required).
Exemplo de solicitação
{
  "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"
    }
  }
}
Exemplo de resposta
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

O formato da resposta é ilustrativo — o conteúdo real depende da ferramenta e dos seus dados.