Skip to main content
Glama

Avokata: Lithuanian law & court practice

Save a workflow version

save_workflow

Keep one of this account's own workflows: the user's skill for a recurring piece of work, as ordered steps (this service's tools), when phrases, principles, preferences and outputs. Ask the user first; nothing is saved without this call. Every save is a NEW VERSION (earlier ones are kept) and starts as a draft; publish_workflow makes it active. Roles and slots only: personal data is refused with the field and the fix. Private to the account. Same id as a shipped playbook = your version replaces it for you.

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>",
      "title": "<title>",
      "one_line": "<one_line>"
    },
    "name": "save_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoOptional prose in Markdown: what the steps cannot say, for an agent to follow rather than for a human to admire. Required (80+ characters) only for a prose-only playbook sent without `steps`.
whenNo2-12 task phrases, in the words the user uses when asking for this work (Lithuanian matches best); find_workflow and the hint match against them.
stateNo`draft` (the default: read it, do not follow it as finished) or `active` (finished: served and hinted). Retire with publish_workflow(state='retired').
stepsNoThe ordered calls: a list of {n, tool, args, purpose, stop_if}; `tool` is one of this service's tool names, each arg a literal or a slot {"slot": "article", "from": "task"}. Roles and slots only - never a person's or a client's data. workflow_guide() shows the shape.
titleYesWhat this playbook is called, in the lawyer's words - it is what a client shows in a menu.
parentNoThe workflow this refines (your earlier one or a shipped id); requires `change_note`.
outputsNoWhat the finished product looks like, in one or two sentences (the memo's sections, the checklist's lines).
one_lineYesOne sentence saying what the playbook produces, shown beside the title in listings.
principlesNoUp to 20 of the user's working rules that change how the work is done (e.g. `cite the edition in force on the event date`). Rules, never client facts.
change_noteNoWith `parent`: what changed from it and why, in a sentence or two.
preferencesNoUp to 20 name -> text preferences: output language, format, depth, tone (e.g. {"language": "lt", "format": "memo"}).
workflow_idYesThe id to save under. Reusing a shipped id (`still-good-law`) replaces that playbook FOR THIS ACCOUNT with yours; a new id adds one. Saving an id again is a NEW VERSION; earlier versions are kept.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say readOnly=false, destructive=false, idempotent=false; the description adds far more: every call creates a NEW VERSION with earlier ones kept (consistent with idempotentHint=false), new saves start as draft, publishing is a separate tool, saves are private to the account, and personal data is refused with the offending field and the fix. It also discloses the shipped-id collision behavior, which no structured field carries.

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?

Front-loaded with the core action and the versioning rule, then requirements and sibling routing. It is dense and uses fragmentary clauses ('Roles and slots only: personal data is refused with the field and the fix'), which costs a little readability but no sentence is filler.

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 12-parameter mutation tool with no output schema, the description covers the things an agent cannot infer: draft-vs-active lifecycle, version immutability, id replacement semantics, privacy scope and the refusal behavior. Nothing needed to call it correctly appears to be missing.

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 already 100%, so the baseline is 3, but the description adds policy-level meaning: `steps` must hold roles and slots only (never a person's or client's data), and reusing a shipped id such as `still-good-law` replaces that playbook for this account rather than creating a second one. Those are consequence-level semantics the schema only repeats more terseley.

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 — 'Keep one of this account's own workflows' — and immediately defines what a workflow is (ordered `steps`, `when` phrases, principles, preferences, outputs). An agent can distinguish it from get_workflow, list_workflows and publish_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 a hard precondition ('Ask the user first; nothing is saved without this call') and routes the agent onward: publish_workflow activates a draft, workflow_guide() shows the steps shape. It does not explicitly state when not to save (e.g. editing an existing version in place), but the versioning sentence covers the main alternative path.

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