get_db_schema
Retrieve a condensed Postgres schema snapshot from SQL migrations to inspect tables, columns, keys, indexes, and RLS policies.
Instructions
Condensed SQL-migration snapshot: tables (cols, types, nullability, defaults), PKs, FKs, indexes, RLS policies.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_db_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tables | No | Optional filter: only return these table names. | |
| dialect | No | SQL dialect -- currently only 'postgres' is implemented. | |
| project | No | Project name/path (default: active). | |
| migrations_dir | No | Relative or absolute path to the migrations directory (default: auto-detect). |