Skip to main content
Glama

Reject a glossary draft’s candidates

reject_glossary_draft_candidates
Destructive

Mark a ready draft’s candidates rejected and remember their source terms for the glossary, flagging them rejectedBefore in its later drafts (all but a term longer than an entry allows, which no draft can add); an entry a candidate conflicts with stays as it is. 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>",
      "candidateIds": "<candidateIds>"
    },
    "name": "reject_glossary_draft_candidates"
  }
}

Input Schema

NameRequiredDescriptionDefault
draftIdYesThe draft’s id, from draft_glossary or get_glossary_draft
glossaryIdYesGlossary id, from list_glossaries
candidateIdsYesThe candidates’ ids, from get_glossary_draft

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.6/5.0
Behavior5/5

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

Beyond the destructiveHint annotation, it discloses the durable consequence: rejected source terms are remembered and flagged `rejectedBefore` in later drafts, an entry a candidate conflicts with is left untouched, and the draft becomes `completed` when all candidates are decided. It also enumerates the exact error codes and their trigger conditions, which is unusually complete for a mutation tool.

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 core action and its consequences are front-loaded, and every sentence carries information. The parenthetical about a term longer than an entry allows is syntactically tangled and forces a re-read, which is the main structural weakness.

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 three-parameter mutation it covers preconditions, refusals, downstream effects on future drafts, and the return ('Answers with the draft'), which the output schema then details. Nothing an agent needs in order to call it safely is missing.

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, but the description adds real constraints the schema does not: candidate ids must belong to the named draft, must not repeat, and must not already be decided, and the draft must belong to the given glossary. These are validity rules an agent could not derive from the UUID formats.

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 states a precise verb and resource: mark a `ready` draft's candidates rejected, with the side effect of recording source terms. The contrast with the sibling accept_glossary_draft_candidates is unambiguous from the word 'rejected' alone, so an agent can pick between the two without opening a schema.

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?

It gives a hard precondition ('unless the draft is `ready`') and the exact refusal it produces, which tells the agent when the call will work versus fail. It stops short of explicitly naming accept_glossary_draft_candidates as the alternative for the opposite decision, leaving that routing to inference.

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.