MCPMCP Tools/Clients/get_client_locations_analytics
get_client_locations_analytics
Readanalytics:read
Read analytics summed across all locations of one client, for Google, Facebook or Bing. The UI's trailing reporting-lag trim, totals and any-location connection signal are preserved. days defaults to 30 (7–90).
Parameters
daysintegeroptional
source"google" | "facebook" | "bing"optional
clientIdstringrequired
Accepts the database ID or public cli- ID. IDs must belong to the authenticated agency and permitted client.
Example request
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_client_locations_analytics",
"arguments": {
"clientId": "string"
}
}
}Example response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "..."
}
]
}
}Response shape shown for illustration — the actual content depends on the tool and your data.