db_schema_list
Retrieve saved database schema snapshots to view stored table structures and metadata, enabling structured management of database architectures.
Instructions
Lista instantáneas guardadas (sin el cuerpo completo del esquema).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_id | Yes | ||
| connection_name | No | ||
| limit | No |
Implementation Reference
- schema_engram_mcp/server.py:98-110 (handler)The handler implementation for the `db_schema_list` tool, which fetches a list of schema snapshots using the storage helper.
def db_schema_list( workspace_id: str, connection_name: str | None = None, limit: int = 50, ) -> str: """Lista instantáneas guardadas (sin el cuerpo completo del esquema).""" rows = storage.list_snapshots( _get_conn(), workspace_id=workspace_id.strip(), connection_name=connection_name.strip() if connection_name else None, limit=min(max(limit, 1), 200), ) return json.dumps({"snapshots": rows}, ensure_ascii=False)