get_function_definition
Retrieve the CREATE FUNCTION definition for a specified function in a SQL Server database, returning the exact T-SQL code used to create it.
Instructions
Get the CREATE FUNCTION definition
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": {
"function": "<function>"
},
"name": "get_function_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | Database name | |
| function | Yes | Function name (can include schema) |