MCPFerramentas MCP/Anúncios em diretórios/get_profile_analytics_rollup

get_profile_analytics_rollup

Readlistings:read

Profile analytics aggregated across ALL of a client's locations (the Listings → All locations → Profile Analytics view): profile views, all actions, website visits, phone calls, direction requests, button clicks, followers, post engagement across the client's connected publishers (Google, Facebook, Apple, Bing), plus a followers gauge and data-coverage across locations. Also returns a per-location `leaderboard` (top locations by profile views, with Δ% vs the prior window and a sparkline). Client-scoped — requires clientId (no locationId). Optional from/to (ISO), sources (subset of google/facebook/apple/bing), comparison (vs a prior window), granularity, leaderboardLimit (top-N locations, default 25, max 100), leaderboardSearch (filter leaderboard by location name). Defaults to the last 30 days. Read-only — data is served from the aggregation tables (refreshed daily by background jobs). You don't pass an agency — it comes from your credentials, and a client from another agency is never returned.

Parâmetros
clientIdstringobrigatório
Client id (from list_clients)
fromstringopcional
Window start (ISO); default 30 days ago
tostringopcional
Window end (ISO); default now
sources("google" | "facebook" | "apple" | "bing")[]opcional
Publishers to include (default all).
comparison"none" | "previous_period" | "previous_month" | "previous_quarter" | "previous_6_months" | "custom"opcional
Compare vs a prior window.
granularity"daily" | "weekly" | "monthly"opcional
Time bucket.
leaderboardLimitnumberopcional
Top-N locations in the leaderboard (1-100, default 25)
leaderboardSearchstringopcional
Filter the leaderboard by location name
Exemplo de solicitação
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_profile_analytics_rollup",
    "arguments": {
      "clientId": "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.