Skip to main content
Glama

Add or Replace a Workflow Recipe

publish_workflow_recipe
Destructive

Adds one workflow recipe to a playbook the user owns and writes a new version. Recipes are keyed by name: an identical recipe changes nothing (unchanged: true) unless sensitivity or acknowledgedTerms is passed; a different recipe with the same name is refused unless mode is "replace". playbookId may be omitted only when the user owns one playbook. Secret-shaped values are refused; sensitive vocabulary raises the sensitivity unless each term is in acknowledgedTerms. Returns the new version, privacyWarnings for this recipe and acknowledgeable terms ([{itemName, terms}]). [Bearer scope: playbook:write | playbook:publish]

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": {
      "recipe": "<recipe>"
    },
    "name": "publish_workflow_recipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoPass "replace" to overwrite an existing same-name recipe in place (one new version). Without it, a same-name recipe with different content is rejected; identical content is an idempotent no-op.
recipeYesWorkflow recipe matching the workflowRecipeSchema (name, purpose, inputs[], steps[], outputs[], humanApprovalRequired, etc.)
dotfileIdNoDeprecated alias for `playbookId`.
playbookIdNoPlaybook id (from list_playbooks). May be omitted only when the user owns exactly one playbook; otherwise the error lists their ids and titles. `dotfileId` is a deprecated alias.
sensitivityNoOptional re-declaration of the playbook's sensitivity. Applied exactly, even below the stored level, when acknowledgedTerms plus recorded acknowledgments cover every current sensitive-vocabulary match; otherwise the level rises or stays and privacyWarnings names the uncovered terms.
acknowledgedTermsNoSensitive-vocabulary terms (from a prior warning or validate_playbook) the operator acknowledges so this write keeps its declared sensitivity. Merged with the playbook's recorded acknowledgments; non-matching terms are ignored; values shaped like secrets are still refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: what gets overwritten on replace (one new version, in place), that secret-shaped values are refused, that sensitive vocabulary escalates declared sensitivity unless terms are acknowledged, and what comes back (new version, privacyWarnings, acknowledgeable terms). One nuance sits in mild tension with the structured hints — the description calls an identical recipe an 'idempotent no-op' while `idempotentHint` is false — but this reads as scoped nuance rather than an outright contradiction.

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?

Dense but front-loaded: the core action and versioning behavior come first, then refusal/idempotency rules, then return values and auth scope. It is a long single paragraph, but nearly every clause carries a rule an agent needs; only the bracketed bearer-scope note feels tacked on.

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?

For a destructive, six-parameter write tool with no output schema, this covers the essentials: prerequisite ownership checks, refusal and escalation paths, secret rejection, and the shape of the response including privacyWarnings and acknowledgeable terms. An agent has enough to call it correctly and anticipate failure modes.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3; the description largely restates schema semantics (mode replace, omitted playbookId, acknowledgedTerms merging) rather than adding format or edge-case detail the schema lacks. The one addition, that `dotfileId` is deprecated, is already present in the schema.

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?

Opens with a specific verb and resource plus the mutation's effect: 'Adds one workflow recipe to a playbook the user owns and writes a new version.' It also defines the add-vs-replace distinction via `mode`, so an agent can tell what this tool does that a removal or snapshot-publish tool would not.

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?

Gives explicit conditional rules an agent must apply before calling: `playbookId` may be omitted only when the user owns exactly one playbook, a same-name recipe with different content is refused unless `mode` is "replace", and identical content is a no-op. These are concrete when/when-not conditions rather than implied usage.

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