Run a report
run_reportGenerates a table of advertising platform metrics for chosen fields and dates, including column meanings and row limits, so you can review campaign performance and adjust the report scope.
Instructions
The platform's rows for the fields over the dates, as a table: at most 1,000 rows and
about 30,000 characters (more_rows counts the rest; fewer days, fewer fields or a
longer period fit more). descriptions says what each column means (currency,
attribution, caveats). Every row has the always fields. A week, month or year row
counts its whole period and is dated by its first day. A refusal says what to change.
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": {
"platform": "<platform>",
"connection": "<connection>",
"fields": "<fields>"
},
"name": "run_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | A level id (describe_source); default: the first. | |
| fields | Yes | Field names from describe_fields or a preset. | |
| period | No | What one row covers (describe_source): day by default. | day |
| end_date | No | The last day, YYYY-MM-DD; at most today. | |
| platform | Yes | A platform id from list_platforms. | |
| settings | No | The chosen option's `settings` from list_options. | |
| connection | Yes | A connection id from list_platforms. | |
| start_date | No | The first day, YYYY-MM-DD (dated platforms). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| period | Yes | ||
| columns | Yes | ||
| end_date | Yes | ||
| platform | Yes | ||
| more_rows | Yes | ||
| start_date | Yes | ||
| descriptions | Yes |