db_schema
Analyze database schema definitions from Prisma, Drizzle, SQLAlchemy, Django ORM, TypeORM, and raw SQL DDL to return tables, columns, types, relationships, and migrations.
Instructions
Analyze database schema definitions. Parses Prisma, Drizzle, SQLAlchemy, Django ORM, TypeORM entities, and raw SQL DDL. Returns tables, columns, types, relationships, and migrations.
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": "db_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | No | Subdirectory to search for schema files |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tables | Yes | ||
| summary | Yes | ||
| relationships | Yes | ||
| scannedPatterns | No |