Docs · MCP tool
query_data
Query the workspace's stored daily performance rows (cost, impressions, clicks, conversions, conversion value and more). Rows are the workspace's own data as pulled from each network, before any pipeline's transform rules, one row per day per ad (or ad group or campaign). Dates are in the ad account's own timezone. Returns at most 500 rows; truncated is true when more matched, so narrow the dates or filters.
Query stored data
Scope
read. Reads only.| Argument | Type | Required | About |
|---|---|---|---|
start | string | no | First day, YYYY-MM-DD. |
end | string | no | Last day, YYYY-MM-DD. |
network | string | no | Only this network, e.g. google or meta. |
source_id | string | no | Only this source (from list_sources). |
fields | array | no | Columns to return, e.g. ["date", "cost"]; extra.<key> for network-specific fields. |
limit | integer | no |
Output
Structured content with: rows, total, truncated.
When something is wrong (an unknown id, a run already going, a missing scope) the result is an error with one plain sentence the agent can act on.
Example call
{
"name": "query_data",
"arguments": {
"start": "2026-11-01",
"end": "2026-11-07",
"fields": [
"date",
"cost"
]
}
}