GA4 Data Query
query_dataExecute Google Analytics data queries (Step 3 FINAL).
Prerequisites: Run query_contexts with request='accounts' (includes available_requests) + request='actions_details' to understand the required payload.
IMPORTANT: The 'body' parameter is a dictionary that must contain ALL fields including:
action: Table/action name (e.g. 'runReport', 'runRealtimeReport')
workspace_id: Integer workspace ID
brand_id: Integer brand ID
property_id: GA4 property identifier
Any other fields from the helper response (filters, date ranges, dimensions, metrics, etc.)
Do NOT pass these as separate parameters - they must ALL be inside the body dictionary.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"body": "<body>"
},
"name": "query_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||