get_function_definition
Retrieve the full source definition of a user-defined function in SQL Server or PostgreSQL by providing its schema and name.
Instructions
Get the full source definition of a user-defined function
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": {
"schema": "<schema>",
"name": "<name>"
},
"name": "get_function_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Function name | |
| schema | Yes | Schema name (e.g. dbo) | |
| database | No | Database name (defaults to the configured default database) |