Describe function
describe_functionRetrieve a SQL function's parameters, return type, and CREATE FUNCTION body without executing it. Inspect metadata read-only in SQL Server.
Instructions
Get parameters, return type, and the SQL definition (CREATE FUNCTION body) for a function. This tool only reads the function's metadata — it never executes it.
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>",
"function": "<function>"
},
"name": "describe_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | Yes | Schema name, e.g. 'dbo' | |
| function | Yes | Function name |