local_ydb_generate_schema
Generate YDB table DDL (CREATE, ALTER, DROP, indexes) from structured JSON specs, with optional validation via the YDB JS SDK 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. | |
| validate | No | If true, validate the generated DDL through local_ydb_apply_schema action=validate. This tool never applies DDL. | |
| timeoutMs | No | SDK validation timeout in milliseconds when validate=true. Defaults to 120000. | |
| 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. | |
| statements | Yes | Structured schema statement specs to render into YDB table DDL. | |
| databasePath | No | YDB database path to use when validate=true. Defaults to the configured tenant root. | |
| maxOutputBytes | No | Maximum UTF-8 bytes returned per validation issue stream when validate=true. Defaults to 65536. |