Skip to main content
Glama

Avokata: Lithuanian law & court practice

Publish or unpublish a playbook

publish_workflow
DestructiveIdempotent

Mark one of this account's workflows as finished (active), take it back to a draft, retire it (state='retired': kept, not deleted) or restore it. share_consent=true records only that the USER agreed a de-identified version may be proposed for the shared library; nothing is shared by this call.

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": {
      "workflow_id": "<workflow_id>"
    },
    "name": "publish_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateNoInstead of `published`: `retired` puts every version away (kept, not deleted; a shipped id it replaced is served again); `active` restores it; `draft` takes it back to a draft.
publishedNoTrue publishes it (the default), false returns it to a draft. A draft is readable but should not be followed as though finished.
workflow_idYesWhich of your saved playbooks to publish or unpublish.
share_consentNoTrue only when the USER agreed that a de-identified version may be proposed for the shared library. Nothing is shared by this call: the studio reviews it first and never names the author.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description usefully clarifies that 'destructive' here means retirement, not deletion, plus that a replaced shipped id is served again. It also discloses the important consent nuance that nothing is actually shared by this call, which is real behavioral context an agent would otherwise misread. It stops short of describing the response or permission requirements.

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?

Two dense sentences with the state transitions front-loaded and the consent caveat placed last, which is the right priority order. Some of the phrasing duplicates the parameter descriptions verbatim, so a small amount of text is not earning its place.

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

Completeness4/5

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

For a four-parameter state-mutation tool with full schema coverage, annotations, and no output schema, the description covers what an agent needs: the state vocabulary, the non-destructive retirement semantics, and the consent meaning. It leaves unstated what the call returns and whether any permission or version-precondition applies.

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 coverage is 100% and the schema descriptions already explain state, published, workflow_id, and share_consent in near-identical terms, so the description largely restates structured data. The consent sentence reinforces the strongest semantic risk (share_consent means user agreement, not sharing), but adds little syntax or format detail beyond 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?

The description states a specific verb and resource ('Mark one of this account's workflows as finished (active), take it back to a draft, retire it or restore it') and enumerates the four state transitions it performs. It also draws an explicit boundary against the destructive sibling by noting retired content is 'kept, not deleted', so an agent can separate this from delete_workflow without opening either 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?

It gives clear conditions for each mode: use active to finish/restore, draft to pull back, retired to put every version away, and share_consent only when the USER has agreed. The 'kept, not deleted' phrasing implicitly steers away from delete_workflow, but no sibling is named explicitly and no error/precondition guidance is given.

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