Publish schema
publish_schemaPublish a database-linked schema's working copy as the contract used by enrichment and replicas. A newly linked schema sends nothing until first publication; unlinked drafts cannot be published. Requires editor; no LLM call. Call validate_only=true to inspect the diff, blockers, warnings and per-database migration_sql. Transform migrations, and columns a linked database narrows (migration_sql[].physical_changes), require user-approved confirm_transforms=true; cross-schema conflicts remain blockers. key_language may be required if classification revealed a multilingual key. Returns publication state; queued migrations apply asynchronously on replicas. unserved lists, per SQL Server database, the declared indexes and foreign keys it does not create. See enricher://docs/database-sync for the review and delivery workflow.
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": {
"schema_id": "<schema_id>"
},
"name": "publish_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema_id | Yes | UUID of the schema to publish. | |
| key_language | No | ISO 639-1 language for multilingual identity tokens. Normally adopted from the database lock. Supply when key_language_required requests a choice; review the suggested language with the user. Shared by all schemas of that database. | |
| validate_only | No | Dry-run: return the diff + blockers without publishing. | |
| confirm_transforms | No | Acknowledge a transform migration (re-key, type change, or a column/table rename) run against the replicas' own data, or a column a linked database narrows (migration_sql[].physical_changes, which can be the only reason). Required when the preview says requires_confirm — ALWAYS show both lists to the user and get their explicit approval before passing true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||