get_object_definition
Retrieve the full T-SQL definition of a stored procedure, view, or trigger, including parameters for procedures, to analyze the object and identify potential adjustments.
Instructions
Devuelve el código T-SQL completo de un stored procedure, vista o trigger, y sus parámetros si es un SP. Úsala para analizar un SP y proponer ajustes.
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": {
"name": "<name>"
},
"name": "get_object_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Nombre del objeto (SP, vista o trigger) | |
| schema | No | dbo |