get_functions
Retrieve user-defined SQL Server functions from a database, optionally with source code. Filter by schema or type to inspect scalar, table, and inline functions.
Instructions
List user-defined functions with optional code view
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>"
},
"name": "get_functions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Function type filter | all |
| schema | No | Filter by schema name | |
| server | No | SQL Server instance (e.g., "server\instance" or "server,port"). Uses default if not specified. | |
| database | Yes | Database name | |
| includeCode | No | Include function source code |