get_table_schema
Retrieve a table or view's schema definition, including columns, data types, primary keys, and foreign keys.
Instructions
Get detailed schema definition for a specific table or view including columns, data types, primary keys, and foreign keys.
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": {
"table_name": "<table_name>"
},
"name": "get_table_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_name | Yes | Name of the table or view. | |
| schema_name | No | Schema name (default: 'dbo'). | dbo |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||