generate_report
Generate a written report from a report template and your data sources, in the background. Uses AI credits. Returns a job id: poll get_analysis_status until it completes; the result names the new report, which get_report returns.
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": {
"template_id": "<template_id>"
},
"name": "generate_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| question | No | Optional focus for the report, e.g. "paid acquisition in Q3". | |
| template_id | Yes | ID or slug of a report template (see the template list in the web app). | |
| data_source_ids | No | Data sources to report on, most important first (from list_data_sources). Omit to use every active source in the organization, up to 5. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ||
| status | Yes | "queued" once generation has started. | |
| web_url | No |