sql_execute_safe
Validate and execute SQL queries safely by parsing the AST, scanning outbound DLP, and enforcing policy invariants before execution.
Instructions
Parse SQL AST, scan outbound DLP, evaluate Z3 policy invariants, and execute safely.
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": {
"session_id": "<session_id>",
"connection_id": "<connection_id>",
"query": "<query>"
},
"name": "sql_execute_safe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| params | No | ||
| agent_role | No | WORKER | |
| risk_score | No | ||
| session_id | Yes | ||
| connection_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||