Skip to main content
Glama

publish_workflow

Validate and publish the current draft as an immutable revision. Does not start a run or spend compute. Publish only after the user has approved the intended workflow.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflow_idYes
expectedDraftVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / expectedDraftVersion
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "workflow_id"
      -]New value: +[
      +  "workflow_id",
      +  "expectedDraftVersion"
      +]
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare the generic safety flags (not read-only, not destructive, not idempotent). The description adds real behavior beyond them: the result is an immutable revision, no run is started, no compute is spent, and user approval is a gating condition. It stops short of stating what happens on a repeated publish or when expectedDraftVersion is stale.

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?

Three short sentences, front-loaded with the action, followed by the negative scope and the precondition. Every sentence earns its place with no padding.

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

Completeness3/5

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

Behavioral context is solid for a non-idempotent mutation, but with 0% parameter coverage and no output schema, the agent is left without guidance on what expectedDraftVersion must match or what a successful publish returns. Adequate but with clear gaps.

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

Parameters2/5

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

Schema description coverage is 0% and both parameters are required, so the description carries the full explanatory burden. It says nothing about workflow_id or expectedDraftVersion, leaving the optimistic-concurrency semantics of the version parameter entirely undocumented.

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?

States a specific verb and resource ('Validate and publish the current draft as an immutable revision') and immediately delimits scope against the run-oriented siblings ('Does not start a run or spend compute'). An agent can separate this from validate_workflow and start_workflow without opening any schema.

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?

Gives an explicit precondition: 'Publish only after the user has approved the intended workflow.' It also rules out run execution, which is useful context. It does not, however, name alternatives such as validate_workflow for a dry check or update_workflow for editing the draft.

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