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.
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) |