MCPOutils MCP/Fiches/get_profile_analytics

get_profile_analytics

Readlistings:read

Profile analytics for a SINGLE location across its connected publishers (Google, Facebook, Apple, Bing): profile views, all actions, website visits, phone calls, direction requests, button clicks, followers, post engagement — plus Google's impression split (maps/search/desktop/mobile) and top search keywords. Location-scoped — requires clientId AND locationId. Optional from/to (ISO), sources (subset of google/facebook/apple/bing), comparison (vs a prior window), granularity. Defaults to the last 30 days. Data is served from the aggregation tables (refreshed daily by background jobs).

Paramètres
clientIdstringobligatoire
The client's id (from list_clients).
locationIdstringobligatoire
The location's id (from list_locations).
fromstringfacultatif
Window start (ISO); default 30 days ago
tostringfacultatif
Window end (ISO); default now
sources("google" | "facebook" | "apple" | "bing")[]facultatif
Publishers to include (default all).
comparison"none" | "previous_period" | "previous_month" | "previous_quarter" | "previous_6_months" | "custom"facultatif
Compare vs a prior window.
granularity"daily" | "weekly" | "monthly"facultatif
Time bucket.
Exemple de requête
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_profile_analytics",
    "arguments": {
      "clientId": "string",
      "locationId": "string"
    }
  }
}
Exemple de réponse
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

La forme de la réponse est indicative — le contenu réel dépend de l'outil et de vos données.