Import schema
import_schemaImport a database schema into a project from pasted content: SQL DDL (CREATE TABLE …, raw pg_dump/mysqldump schema output works), SQL INSERT dumps, CSV/TSV, JSON, or ORM model code (Django, Prisma, SQLAlchemy, …). Replaces the project's current schema.
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": {
"project": "<project>",
"content": "<content>"
},
"name": "import_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Optional hint: sql, csv, tsv, json, or an ORM name (django, prisma, sqlalchemy, …). Auto-detected when omitted. | |
| content | Yes | The schema source text (e.g. the DDL) | |
| project | Yes | Project id (UUID) or project name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tables | No | ||
| fk_count | Yes | ||
| warnings | No | ||
| table_count | Yes |