schema_query
Execute database schema changes like CREATE, ALTER, DROP, or RENAME with a confirmation preview to prevent accidental modifications.
Instructions
Execute CREATE, ALTER, DROP, or RENAME (DDL). Separate from write_query. Requires confirmed=true after a strong confirmation preview.
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": {
"sql": "<sql>"
},
"name": "schema_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Single CREATE/ALTER/DROP/RENAME statement | |
| confirmed | No | Must be true to execute. If omitted/false, returns an impact preview only — nothing runs. |