Stored procedure definition
get_procedure_definitionRetrieve the CREATE PROCEDURE text for a specific stored procedure to review its SQL definition. The server does not execute procedures; unreadable ones return null definition.
Instructions
Returns the CREATE PROCEDURE text of one stored procedure. Use it to read or review a procedure found with list_procedures; this server never executes procedures. A procedure the login can see but not read comes back with definition null and definition_visible false.
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_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | Procedure schema. Empty searches every schema. Example: 'Feeder' | |
| database | Yes | Name of the database as registered in the configuration. | |
| procedure | Yes | Stored procedure name, bare, with no schema prefix. |