query
Execute a read-only SQL SELECT or WITH statement on a SQLite database, returning results up to a configurable maximum number of rows.
Instructions
Run a READ-ONLY SQL query (a single SELECT or WITH statement) and return the rows.
Writes (INSERT/UPDATE/DELETE/DROP/...) are rejected. Results are capped at max_rows.
Args: sql: A single SELECT or WITH statement. max_rows: Maximum number of rows to return (1-1000, default 100).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| max_rows | No |