Skip to main content
Glama

Avokata: Lithuanian law & court practice

Open a playbook or job

get_workflow
Read-onlyIdempotent

Open one workflow as a PLAN bound to the task: the ordered tool calls with the act number, case number or date from task filled in and every other slot left open, the principles and what the result looks like. Sizes cover the complete JSON payload; the 2,000-character target is advisory and safeguards are never cut. Compare with existing instructions: use, adapt, supplement or skip. You run applicable steps yourself: this tool runs no step and checks no result. Pass the workflow_id returned by find_workflow (one task) or list_workflows (all of them): task binds the plan's slots and does not replace that id. detail='full' adds prose; follow any explicit conditional full-read requirement. To write a new workflow use workflow_guide. Example arguments: {"workflow_id": "provision-history", "task": "CK 6.217, 2024-01-15", "detail": "plan"}.

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": "get_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskNoThe user's task in a sentence. Exact identifiers in it (an act number `XII-2603`, a case number `e3K-3-105-684/2019`, a date `2021-03-01`) are filled into the plan's slots; every other slot stays open for you to fill.
detailNo`plan` (default): calls, essential checks and outputs; complete JSON character/UTF-8 byte sizes are reported. The 2,000-character target is advisory, with over_target rather than cut safeguards. `full` adds explanation; follow any explicit conditional full-read requirement.plan
workflow_idNoWhich workflow to open, by the `workflow_id` from `find_workflow` or `list_workflows` - e.g. `still-good-law`, `job-matter-memo`. A bare id is the playbook; a job is `job-<id>`.

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. Changed1 schema field changed
    • changedInput schema / properties / detail / description
      Previous value: -"`plan` (the default): the ordered calls, principles and outputs, under 2,000 characters. `full` adds the prose body the plan was copied from."New value: +"`plan` (default): calls, essential checks and outputs; complete JSON character/UTF-8 byte sizes are reported. The 2,000-character target is advisory, with over_target rather than cut safeguards. `full` adds explanation; follow any explicit conditional full-read requirement."
  3. Changed7 schema fields changed
    • addedInput schema / properties / detail
      Added value: +{
      +  "default": "plan",
      +  "description": "`plan` (the default): the ordered calls, principles and outputs, under 2,000 characters. `full` adds the prose body the plan was copied from.",
      +  "enum": [
      +    "plan",
      +    "full"
      +  ],
      +  "title": "Detail",
      +  "type": "string"
      +}
    • addedInput schema / properties / task
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The user's task in a sentence. Exact identifiers in it (an act number `XII-2603`, a case number `e3K-3-105-684/2019`, a date `2021-03-01`) are filled into the plan's slots; every other slot stays open for you to fill.",
      +  "title": "Task"
      +}
    • addedInput schema / properties / workflow_id / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / workflow_id / default
      Added value: +null
    • changedInput schema / properties / workflow_id / description
      Previous value: -"Which playbook to read, by the `workflow_id` from `list_workflows` - e.g. `still-good-law`, `matter-digest`."New value: +"Which workflow to open, by the `workflow_id` from `find_workflow` or `list_workflows` - e.g. `still-good-law`, `job-matter-memo`. A bare id is the playbook; a job is `job-<id>`."
    • removedInput schema / properties / workflow_id / type
      Removed value: -"string"
    • removedInput schema / required
      Removed value: -[
      -  "workflow_id"
      -]
  4. Changed1 schema field changed
    • changedInput schema / properties / session / description
      Previous value: -"The `session` value connect returned, when this client keeps no connection session. Pass it on every Avokata call in this conversation; omit it when the client sends a key."New value: +"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."
  5. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, yet the description adds genuinely non-obvious behavior: 'this tool runs no step and checks no result' and that payload sizes are reported with a 2,000-character target that is advisory and never trims safeguards. It does not cover error cases (unknown workflow_id, missing task binding), which keeps it short of a 5.

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?

Purpose is front-loaded, followed by routing, behavioral caveats, and a concrete example invocation, which is a sensible order for a dense tool. It loses a point for repeating the 2,000-character/advisory-size and `detail='full'` points that the schema's parameter descriptions already carry verbatim.

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?

With no output schema, the description still conveys the return shape (ordered calls, principles, expected result, size metrics) and the detail-level difference, plus the crucial caveat that execution and verification are the caller's job. For a three-parameter read tool, nothing an agent needs before calling is missing.

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 already explains slot filling, the `plan`/`full` enum, and the `job-<id>` id form, so the description largely restates structured data. It does add one useful constraint — that `task` binds slots and does not substitute for `workflow_id` — but that idea is also present in the schema, so baseline 3 applies.

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 ('Open one workflow as a PLAN bound to the task') and immediately specifies what the returned object contains: ordered tool calls with identifiers filled from `task`, open slots, principles, and expected result. It is clearly separable from find_workflow/list_workflows (which supply the id) and from workflow_guide (authoring).

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 routing: take `workflow_id` from find_workflow for a single task or list_workflows for all, and use workflow_guide to write a new workflow. It also sets an operating stance ('Compare with existing instructions: use, adapt, supplement or skip') and the conditional full-read rule, so the agent knows both when to call it and what to do with the result.

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