Skip to main content
Glama

Extend MCP

Publish a classifier version

publish_classifier_version

Publish the classifier's current draft config as a new immutable semver version ("1.2"-style) that runs and evaluations can pin (classify group). releaseType picks the major or minor bump; pass config to publish that config instead of the draft. Published versions never change — keep iterating on the draft.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesClassifier ID (cl_...).
configNoPublish this config instead of the current draft. Same shape and rules as config on create_classifier / classify_document.
descriptionNoWhat changed in this version.
environmentYes"TEST" = the Test (development) environment, "PRODUCTION" = live. Must match a granted target from get_me (an API key pins one environment).
releaseTypeYesWhich semver component to bump.
workspaceIdYesTarget workspace (ws_...). Must be a granted workspace — get_me lists the accepted values.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
configNo
versionYes
createdAtNo
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already mark this as non-read-only, non-idempotent, and non-destructive. The description adds valuable behavioral context beyond that: published versions are immutable, never change, and can be pinned by runs and evaluations. This explains the key side effect of publishing without contradicting the annotations.

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

Conciseness5/5

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

Four sentences, no filler, and the core purpose is front-loaded. Every sentence adds either the mechanism, the optional behavior, or the consequence of publishing.

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 description, combined with the 100% schema coverage, annotations, and output schema, gives an agent everything needed to call this tool correctly. It explains immutability, the draft-vs-config choice, version bump selection, and the pinning use case.

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 the baseline is 3. The description adds meaning by explaining the relationship between the current draft, the optional config parameter, and releaseType's major/minor bump behavior, which ties the parameters together in a way the schema does not.

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 states a specific verb ('Publish'), a precise resource ('classifier's current draft config'), and the resulting artifact ('new immutable semver version'). It clearly distinguishes this from sibling tools like publish_extractor_version and publish_splitter_version by targeting classifiers specifically.

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

Usage Guidelines4/5

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

The description gives clear context: publish the draft or supply a config instead, and keep iterating on the draft afterward. It doesn't explicitly name the alternative tool (e.g., update_classifier) for editing the draft, so it falls just short of fully explicit when-not-to-use guidance.

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.

Resources