Get Object Definition
get_object_definitionRetrieve the T-SQL definition of a stored procedure, function, view, or trigger. Returns the object type and source code in Markdown.
Instructions
Get the T-SQL source code of a stored procedure, function, view, or trigger. Returns Markdown with the object type and 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": {
"serverName": "<serverName>",
"databaseName": "<databaseName>",
"objectName": "<objectName>"
},
"name": "get_object_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objectName | Yes | Object name (e.g. 'usp_GetOrders') | |
| schemaName | No | Schema name (default 'dbo') | dbo |
| serverName | Yes | Server name from list_servers | |
| databaseName | Yes | Database name from list_databases |