Skip to main content
Glama

Accept a glossary draft’s candidates

accept_glossary_draft_candidates
Destructive

Write a ready draft’s candidates, each with any edits, to the glossary as entries and mark them accepted, all or nothing, as any entry write does: translation memory its terms match goes stale, and Workflows whose Terminology check reads the glossary judge their strings again on their next run (billed as usual) when an entry’s description or forbidden variants change — tell the user before accepting such entries. A candidate in conflict replaces the stored entry it conflicts with; any other creates an entry, and is refused with GLOSSARY_ENTRY_EXISTS when another entry holds its term. Each refusal refuses the whole batch, naming candidates[i]: GLOSSARY_SPELLING_TAKEN for a spelling another entry holds, GLOSSARY_DRAFT_CANDIDATE_OVER_LIMITS (details.field) for a term, description, forbidden variants or target term over an entry’s limits (edit it to fit), GLOSSARY_FETCHED once the glossary can’t be edited here. The draft is completed once every candidate is decided. Refused with GLOSSARY_DRAFT_NOT_FOUND for a draft not of this glossary, GLOSSARY_DRAFT_NOT_READY (naming its state) unless the draft is ready, and BAD_REQUEST naming candidates[i] for a candidate not of the draft, named twice or already decided. Answers with the draft. 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": {
      "glossaryId": "<glossaryId>",
      "draftId": "<draftId>",
      "candidates": "<candidates>"
    },
    "name": "accept_glossary_draft_candidates"
  }
}

Input Schema

NameRequiredDescriptionDefault
draftIdYesThe draft’s id, from draft_glossary or get_glossary_draft
candidatesYesEach field given replaces the candidate’s proposal
glossaryIdYesGlossary id, from list_glossaries

Output Schema

NameRequiredDescriptionDefault
idYes
stateYes
billingYes
costEurYesA paid draft’s actual cost
failureYes
readyAtYes
stringsYesDistinct source strings read at the start
closedAtYes
createdAtYes
startedByYesThe member who started it, by Clerk user id
candidatesYesIn the order proposed; empty until `ready`
chunkTotalYesParts the strings are read in; `null` until drafting has begun
chunksDoneYesParts of the strings the model has read
glossaryIdYes
workflowIdYesThe draft subject; `null` once it is deleted
estimateEurYesA paid draft’s estimate
sourceLocaleYes
targetLocalesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations, the description discloses substantial behavioral detail: the operation is all-or-nothing, translation memory terms go stale, Workflows re-run and bill when descriptions or forbidden variants change, and the user should be warned before such entries are accepted. It also explains conflict handling (replacing a conflicting entry) and lists the exact refusal codes and their conditions, which is far more context than the annotations alone provide.

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 description is front-loaded with the core action and side effects, and most sentences earn their place by covering destructive outcomes, billing implications, and error conditions. It is a dense paragraph with a long run-on error-code section, so it could be easier to scan, but it avoids filler and repetition.

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 destructive batch mutation with an output schema, the description is complete: it covers preconditions, side effects, billing, conflict resolution, all relevant error codes, state transitions, and user-facing id guidance. Nothing an agent needs in order 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.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, so the schema already documents all three parameters and nested candidate fields. The description reinforces that candidate fields replace proposals and that `candidates[i]` appears in errors, but it does not add syntax or format meaning beyond what the schema already states. Baseline 3 is appropriate when the schema carries the parameter documentation.

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 a specific verb and resource: write a ready draft's candidates to the glossary as entries and mark them accepted, all or nothing. The purpose is unambiguous, but it does not explicitly name or distinguish itself from siblings such as reject_glossary_draft_candidates or discard_glossary_draft, so sibling differentiation is implicit rather than stated.

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?

The description gives clear conditions for use: the draft must be `ready`, candidates with changing descriptions or forbidden variants should trigger a user warning because Workflows are billed again, and the draft becomes `completed` once every candidate is decided. It does not explicitly state when to use this tool versus the reject or discard alternatives, leaving that inference to the agent.

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.