Skip to main content
Glama

Avokata: Lithuanian law & court practice

Find a workflow for a task

find_workflow
Read-onlyIdempotent

For multi-step work, find a proposed method to compare with existing practice: checking whether a ruling or a provision still holds, a memo with sources, a matter digest, procedure and deadlines, what an article said on a date. The user's own workflows first, then Avokata's. Returns the best matches with why they fit, or that none fits and how to write one. Open the chosen one with get_workflow; to browse every workflow use list_workflows; to write a new one with the user use workflow_guide. Shipped plans are builder drafts, not professionally validated. Use, adapt, supplement or skip; a single lookup needs no setup. Cheap: no search is run and nothing is decided for the user. Example arguments: {"task": "ar dar galiu remtis šia nutartimi", "limit": 3}.

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": {
      "task": "<task>"
    },
    "name": "find_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYesThe work you are about to do, in a sentence - in the user's words; Lithuanian matches best (`ar dar galiu remtis šia nutartimi`, `atmintinė su šaltiniais`).
limitNoHow many workflows to return, 1-5, default 3. The account's own come first, then the shipped ones, each with why it fits.
jurisdictionsNoWhich jurisdictions to search, as codes. Held: `LT` (Lithuania), `EU` (European Union). Omit to search only the account's own; name every one the question needs. Keeps workflows written for the named jurisdictions and those written for none; omit for every workflow.

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
    • addedInput schema / properties / jurisdictions
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Which jurisdictions to search, as codes. Held: `LT` (Lithuania), `EU` (European Union). Omit to search only the account's own; name every one the question needs. Keeps workflows written for the named jurisdictions and those written for none; omit for every workflow.",
      +  "title": "Jurisdictions"
      +}
  3. Added

TDQS

A4.1/5.0
Behavior4/5

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

Goes well beyond the readOnly/idempotent annotations by disclosing cost ('no search is run and nothing is decided for the user') and a trust caveat that shipped plans are builder drafts, not professionally validated, with guidance to use, adapt, supplement or skip. This is real behavioral context an agent cannot get from the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and routing are front-loaded, but the second sentence is a rambling catalogue of example task types that dilutes the message, and the trailing example-arguments JSON restates what the schema example already conveys. Trimming those would sharpen it without losing information.

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?

Although there is no output schema, the description states what is returned: best matches with the reason they fit, or a statement that none fits plus how to write one. Combined with the disclaimer and the no-side-effect note, an agent has everything needed to call and interpret this read-only tool.

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%, so the schema already explains task, limit, and jurisdictions including jurisdiction codes. The description adds only ordering context (user's own workflows first, then Avokata's) and a duplicated example-arguments blob, which is largely redundant with the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states it finds a proposed method for multi-step work and returns best matches with why they fit, which identifies the resource and outcome well enough. The wording is roundabout — it says 'find a proposed method' rather than naming the workflow resource in the opening sentence — but the trailing routing sentences (get_workflow / list_workflows / workflow_guide) make it distinguishable from siblings.

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?

Explicit routing: open the chosen one with get_workflow, browse everything with list_workflows, write a new one with workflow_guide. It also states a boundary condition ('a single lookup needs no setup'), so the agent knows when this tool is unnecessary.

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