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).
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": {
"workspace_id": "<workspace_id>"
},
"name": "db_schema_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_id | Yes | ||
| connection_name | No | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
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)