get_table_definition
Retrieve the full CREATE TABLE statement for any table in a SQL Server database. Useful for understanding table schemas or recreating tables.
Instructions
Get the full CREATE TABLE definition for a table
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": "<table>"
},
"name": "get_table_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | Database name | |
| table | Yes | Table name (can include schema, e.g., 'dbo.Users') |