User function definition
get_function_definitionReads the CREATE FUNCTION text for one user-defined SQL function, so you can review its definition found via list_functions. Returns null when the login lacks read permission.
Instructions
Returns the CREATE FUNCTION text of one user-defined function. Use it to read or review a function found with list_functions; this server never executes functions. A function 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>",
"function": "<function>"
},
"name": "get_function_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | Function schema. Empty searches every schema. Example: 'Feeder' | |
| database | Yes | Name of the database as registered in the configuration. | |
| function | Yes | Function name, bare, with no schema prefix. |