Skip to main content
Glama

Avokata: Lithuanian law & court practice

How to write a workflow

workflow_guide
Read-onlyIdempotent

How to write a workflow with the user: every field and what it is for, the step rules, how principles and preferences carry the user's way of working, versions, consent and the guardrails (roles and slots only; no personal or client data). A schema with one example step, never a drafted workflow, and it saves nothing. To use an existing workflow instead, find it with find_workflow or list_workflows and open it with get_workflow. Example arguments: {}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "workflow_guide"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / session
      Removed value: -{
      -  "description": "The `session` value the sign-in returned. Pass it on every call in this conversation, so the sign-in survives however this client handles connections; omit it when the user connected with Sign in (OAuth) or a key.",
      -  "type": "string"
      -}
  2. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered; the description still adds real value by asserting it 'saves nothing' and never drafts a workflow, and by disclosing a data-handling guardrail ('roles and slots only; no personal or client data'). The only gap is that it doesn't describe how the content is returned (structure/length), which the absence of an output schema makes mildly relevant.

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?

The purpose is front-loaded in the opening clause and every clause carries content (scope, output nature, alternative routing, guardrail). The long enumeration of covered topics is dense but earns its place; 'Example arguments: {}' is mild filler but usefully confirms no arguments are needed.

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 zero-parameter, read-only guide with no output schema, the description supplies everything an agent needs: what the guide contains, what it returns, that nothing is persisted, the data guardrail, and where to go for an existing workflow. No meaningful gap remains.

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?

The tool takes zero parameters, so there is no schema semantics to add; the description confirms this with 'Example arguments: {}'. Baseline 4 applies for a no-parameter tool, with no misleading hints about hidden inputs.

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 names the resource precisely: a guide covering fields, step rules, principles/preferences, versions, consent and guardrails, plus what it returns (a schema with one example step, never a drafted workflow, saving nothing). It explicitly distinguishes itself from workflow-mutation siblings (find_workflow, list_workflows, get_workflow) and from save/publish tools by stating it saves nothing, so an agent can place it immediately.

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?

It gives an explicit when-not-to-use branch: 'To use an existing workflow instead, find it with find_workflow or list_workflows and open it with get_workflow,' naming the exact alternative tools and the condition that selects them. Combined with 'never a drafted workflow, and it saves nothing,' the agent knows this is the pre-authoring reference step, not a create/edit 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