execute_sql
Run read-only SQL SELECT statements against a user-confirmed connected database for data queries; server-side validation blocks writes.
Instructions
Execute a raw SQL statement against the currently connected database. All SQL, whether written by the user or generated by you, goes through the same server-side validation.
IMPORTANT: Before calling this tool, you MUST confirm which database the user intends to query. If the user has not explicitly stated the target database in their message, ASK them first. Do NOT assume the currently connected database is the intended target.
READ-ONLY: only SELECT (and read-only DO BEGIN...END blocks) execute. Data-changing statements are blocked server-side.
If the user needs a write (INSERT/UPDATE/DELETE), do NOT call this tool — generate the SQL and give it to the user to run in a real DB client (HANA Studio / DBeaver / hdbsql), where a human can review the statement and control its transaction handling.
Rules enforced server-side:
READ-ONLY: INSERT/UPDATE/DELETE/DROP are blocked for everyone — no confirmation bypass.
Direct EXEC/EXECUTE/CALL: blocked (stored procedures are disabled).
CREATE/ALTER: blocked.
MS SQL pass-through (OPENQUERY/OPENROWSET/OPENDATASOURCE): blocked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The SQL statement to execute (SELECT only — read-only server) |