get_procedure_source
Retrieve the full PSQL source code of a stored procedure from a Firebird database. Returns the raw implementation text or an error if not found.
Instructions
Return the full PSQL source body of a stored procedure. Call describe_procedure first if you only need to know parameters — not the implementation. Returns the raw PSQL text, or an error message if not found.
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": {
"database": "<database>",
"procedure": "<procedure>"
},
"name": "get_procedure_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | Database key from list_databases. | |
| procedure | Yes | Procedure name from list_procedures. Automatically uppercased. |