execute_sql_file
Execute SQL file scripts against the database. Supports PL/pgSQL blocks and multi-statement SQL from raw file string.
Instructions
Execute SQL file content (PL/pgSQL blocks, multi-statement scripts). Pass raw SQL from file as string.
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": "execute_sql_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Raw SQL file content (entire file as string) | |
| filename | No | Optional filename for logging/reference (e.g., "115.1.nav.es.sql") |