saveQueryEvidence
Run a read-only SQL query and save the statement with its results as a Markdown report. Returns file path, row count, and preview.
Instructions
Execute a read-only SELECT SQL query and save the SQL plus the results as a Markdown report file. Returns the saved file path, the total number of rows fetched, and the first 10 rows as preview data.
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": {
"sql": "<sql>",
"filepath": "<filepath>"
},
"name": "saveQueryEvidence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SELECT SQL statement to execute and document | |
| database | No | Database to query; omit to use the default | |
| filepath | Yes | Destination Markdown file path (absolute, or relative to the server working directory) |