local_ydb_generate_schema
Generates YDB table DDL (CREATE, ALTER, DROP, indexes) from structured JSON specs, returning a validated script with references and warnings without applying changes.
Instructions
Read-only structured YDB table DDL generator. It renders strict JSON specs for CREATE TABLE, ALTER TABLE, DROP TABLE, and secondary indexes, returns the generated script with official references and warnings, and can optionally validate through the YDB JS SDK without applying changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. | |
| configPath | No | Explicit local-ydb config file path to load for this tool call. Useful when the MCP server should pick up a different config without restart. | |
| databasePath | No | YDB database path to use when validate=true. Defaults to the configured tenant root. | |
| validate | No | If true, validate the generated DDL through local_ydb_apply_schema action=validate. This tool never applies DDL. | |
| statements | Yes | Structured schema statement specs to render into YDB table DDL. | |
| timeoutMs | No | SDK validation timeout in milliseconds when validate=true. Defaults to 120000. | |
| maxOutputBytes | No | Maximum UTF-8 bytes returned per validation issue stream when validate=true. Defaults to 65536. |