add_query
Insert a SQL query into an existing Mode Analytics report by providing the report token, raw SQL, and data source ID.
Instructions
Add a SQL query to an existing report.
This is a write operation — it adds a new query to the report.
Args: report_token: The report to add the query to. raw_query: SQL query text. data_source_id: Data source ID (use list_data_sources to find it). name: Optional query name.
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": {
"report_token": "<report_token>",
"raw_query": "<raw_query>",
"data_source_id": "<data_source_id>"
},
"name": "add_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| raw_query | Yes | ||
| report_token | Yes | ||
| data_source_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||