db_run_readonly
Execute SELECT queries on SQL Server in read-only mode. Safely retrieve data without risk of modifying the database, with automatic TOP injection for row limits.
Instructions
Executes a SELECT query on SQL Server. Only read operations are allowed — write operations are blocked. TOP is automatically injected if no row limit is present. Use db_describe_schema and db_describe_table first if you are unsure about table or column names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | SELECT SQL query to execute. |