Skip to main content
Glama

Draft a glossary from a Workflow

draft_glossary

Start a glossary draft: a model reads every distinct string of one of the organisation’s Workflows (from list_workflows) — its repository’s files in every locale and the translations Globalize holds for it — with its context, and proposes candidate entries with their evidence. Pass glossaryId (from list_glossaries) to draft into a written glossary, or leave it out to create a new written glossary, named name or else after the Workflow. Nothing reaches the glossary until accepted: the drafting runs in the background, so poll get_glossary_draft until its state is no longer generating, then review the candidates with the user and decide them with accept_glossary_draft_candidates and reject_glossary_draft_candidates. The organisation’s first draft to reach ready in a rolling 7 days is free; any other is paid, billed by its actual usage from the organisation’s credits. A paid draft starts only with confirmEstimateEur at least its estimate: without it the call starts nothing and answers started: false with estimateEur and when the next free draft frees up (nextFreeAt). Show the user that estimate, saying it is an estimate, and call again with it as confirmEstimateEur only after the user explicitly confirms. Refused, before anything is counted or billed, with WORKFLOW_NOT_FOUND, WORKFLOW_ARCHIVED, GLOSSARY_FETCHED for a fetched glossary (tell the user to edit its source instead), GLOSSARY_DRAFT_OPEN naming the glossary’s open draft (details.draftId), GLOSSARY_DRAFT_NOTHING_TO_READ for a Workflow with no strings, GLOSSARY_DRAFT_CORPUS_TOO_LARGE naming its distinct strings and the limit, GLOSSARY_DRAFT_SOURCE_UNAVAILABLE when its repository can’t be read right now, and, for a paid draft, INSUFFICIENT_CREDITS once the balance is at its overdraft limit. When referring to a project or language in your reply to the user, use its name and locale (e.g. "French (fr-FR)") — ids (UUIDs) are for tool calls only, never show them to the user.

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": {
      "workflowId": "<workflowId>"
    },
    "name": "draft_glossary"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoWithout glossaryId only: the new glossary’s name; the Workflow’s when left out
glossaryIdNoA written glossary to draft into, from list_glossaries; leave out to create a new one
workflowIdYesThe Workflow to draft from, from list_workflows
confirmEstimateEurNoA paid draft’s estimate in EUR, as the user confirmed it; ignored for a free draft

Output Schema

NameRequiredDescriptionDefault
draftNoThe draft started, at `generating`; only when started
startedYesfalse: the draft would be paid and its estimate is not confirmed, so nothing was started
glossaryNoThe glossary created for the draft, when started without glossaryId
nextFreeAtNoUnless started: when the next free draft frees up; null while this week’s is still drafting (it frees up should that one fail)
estimateEurNoUnless started: the paid draft’s estimate in EUR, to confirm as confirmEstimateEur
freeDraftAvailableNoUnless started: false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say mutation + open-world, so the description carries the real behavioral burden and does: the draft runs in the background, nothing reaches the glossary until accepted, a paid draft will not start without confirmEstimateEur and instead returns `started: false` with `estimateEur`/`nextFreeAt`, and billing is described (first `ready` draft per rolling 7 days free, otherwise charged from credits). It also enumerates ten distinct pre-billing refusal codes including INSUFFICIENT_CREDITS and GLOSSARY_DRAFT_OPEN with `details.draftId`, which is far beyond what the annotations disclose and consistent with them.

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 and the glossaryId fork are front-loaded, and the escalation into billing, polling, and error handling follows in a workable order. It is a dense single paragraph with heavy parenthetical nesting, and the trailing instruction about showing names/locales instead of UUIDs is policy guidance rather than tool semantics, so it is not maximally tight.

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 an open-world, background, billable mutation, everything an agent needs to call it correctly is present: prerequisites, the create-vs-append fork, the confirmation gate before any spend, the polling contract, and the full refusal taxonomy. An output schema exists, so the description is not obliged to explain the response shape, and it does not waste space doing so.

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 100%, so the baseline is 3; the description adds real meaning on top — `name` defaults to the Workflow's name only when glossaryId is absent, and confirmEstimateEur must be an amount the user explicitly confirmed after seeing the estimate, with a warning that omitting it starts nothing. It does not restate the UUID formats, which the schema already handles.

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 ("Start a glossary draft") and immediately defines the scope: a model reads every distinct string of one Workflow across all locales and Globalize's stored translations, with context, and proposes candidate entries with evidence. That is precise enough to separate it from create_repository_glossary, add_glossary_entries, and get_glossary_draft 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit selection rules: pass glossaryId (from list_glossaries) to draft into an existing written glossary, omit it to create a new one; workflowId comes from list_workflows. It also prescribes the follow-on sequence — poll get_glossary_draft until state leaves `generating`, review with the user, then accept_glossary_draft_candidates or reject_glossary_draft_candidates — and names the alternative path (edit the source glossary) for the GLOSSARY_FETCHED case.

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.