get_function_definition
Get the full CREATE OR REPLACE source of a PostgreSQL function or procedure. Disambiguate overloaded names by providing argument types.
Instructions
Full source (CREATE OR REPLACE ...) of a function or procedure. If the
name is overloaded, pass arguments (e.g. "integer, text") to disambiguate.
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": {
"name": "<name>"
},
"name": "get_function_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| schema | No | public | |
| arguments | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||