schema_convert
Convert SQL DDL, Prisma schemas, or JSON payloads into Zod schemas, TypeScript interfaces, or Pydantic v2 models.
Instructions
Convert any database schema (SQL DDL, Prisma) or JSON payload into production-ready Zod schemas, TypeScript interfaces, or Python Pydantic v2 models.
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": {
"schemaInput": "<schemaInput>",
"targetFormat": "<targetFormat>"
},
"name": "schema_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entityName | No | Name of the entity/model (default: inferred from schema). | |
| schemaInput | Yes | Raw SQL DDL, Prisma model definition, JSON string, or file path. | |
| targetFormat | Yes | Desired output code format. |