db_table_schema
db_table_schemaRetrieve the full structure of a database table: columns, indexes, constraints, foreign keys, RLS policies, and triggers.
Instructions
Read-only database tool for full table shape: inspect columns, indexes, constraints, foreign keys, RLS, and triggers.
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": "db_table_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| schema | No | ||
| projectId | No | ||
| projectRef | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rls | Yes | ||
| table | Yes | ||
| _hints | Yes | ||
| schema | Yes | ||
| columns | Yes | ||
| indexes | Yes | ||
| toolName | Yes | ||
| triggers | Yes | ||
| constraints | Yes | ||
| foreignKeys | Yes |