Skip to main content
Glama

Publish schema

publish_schema
Destructive

Publish 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

NameRequiredDescriptionDefault
schema_idYesUUID of the schema to publish.
key_languageNoISO 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_onlyNoDry-run: return the diff + blockers without publishing.
confirm_transformsNoAcknowledge 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

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / confirm_transforms / description
      Previous value: -"Acknowledge a transform migration (re-key, type change, or a column/table rename) run against the replicas' own data. Required when the preview says requires_confirm — ALWAYS show the transforms to the user and get their explicit approval before passing true."New value: +"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."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations, the description discloses that publication defines the contract for enrichment and replicas, can be blocked by cross-schema conflicts, may queue asynchronous migrations, and can list unserved indexes and foreign keys per SQL Server database. It also clarifies that no LLM call is made and that transform migrations require explicit user approval. This is substantial behavioral context for a destructive operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core publication action and then layers in preconditions, validation, confirmation, language, and async behavior. It is dense rather than wasteful, though the single-paragraph form makes some operational details harder to scan. It is appropriately sized for the complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is complex, destructive, and schema-rich, but the description covers permissions, preconditions, validation behavior, confirmation requirements, multilingual key handling, async migration effects, and a documentation reference. With an output schema present, it need not explain return values in detail, and the overall context is complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so parameter meanings are already well documented; the description adds workflow-level meaning by explaining when validate_only is useful, when confirm_transforms must be true, and when key_language may be required. The added meaning is valuable but somewhat overlaps the schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a precise verb and resource: publishing a database-linked schema's working copy as the contract used by enrichment and replicas. It clearly distinguishes publication from editing, validation, and other schema operations mentioned by siblings such as save_schema or update_schema. An agent can identify the tool's core action without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit preconditions and alternatives: newly linked schemas send nothing until first publication, unlinked drafts cannot be published, editor permission is required, and validate_only should be used to inspect diff and blockers before publishing. It also names the confirm_transforms approval requirement and the key_language condition, leaving little to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.