run_query
Run one read-only SQL statement (SELECT, WITH, VALUES, or EXPLAIN) against the SQLite analytics database of one named RevScope project. Call list_projects for the names and get_schema to learn the tables. Paginate with the limit and offset arguments rather than a LIMIT or OFFSET clause, and always ORDER BY so pages are stable. Blob values are returned base64 encoded.
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": {
"project_name": "<project_name>",
"sql": "<sql>"
},
"name": "run_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | A single read-only SQL statement. | |
| limit | No | Rows to return, at most 500. Defaults to 100. | |
| offset | No | Rows to skip, at most 5000. Defaults to 0. | |
| project_name | Yes | Which project to query, spelled exactly as list_projects returns it. Required: there is no default project. |