Describe Table
kb_describe_tableRetrieve the full structure of a database table or view, including columns, data types, constraints, and comments, with optional schema specification.
Instructions
Get detailed structure of a table or view, including columns, types, constraints, and comments.
Args:
table (string): Table or view name
schema (string, optional): Schema name, defaults to DB_SCHEMA env or 'public'
Returns: Table structure with column names, data types, nullable, defaults, and comments.
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": "kb_describe_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table or view name to describe | |
| schema | No | Schema name (default: from DB_SCHEMA env or 'public') |