Skip to main content
Glama

Discard a glossary draft

discard_glossary_draft
Destructive

Close a ready draft as discarded, its undecided candidates left undecided and no longer acceptable, so the glossary can be drafted again. Refused with GLOSSARY_DRAFT_NOT_FOUND for a draft not of this glossary and GLOSSARY_DRAFT_NOT_READY (naming its state) unless the draft is ready. 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>"
    },
    "name": "discard_glossary_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
draftIdYesThe draft’s id, from draft_glossary or get_glossary_draft
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

A3.8/5.0
Behavior4/5

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

With destructiveHint=true already declared, the bar is lower, but the description still adds meaningful context beyond the annotations: the exact terminal state, the fact that undecided candidates become permanently unacceptable, and the named error codes including that GLOSSARY_DRAFT_NOT_READY reports the actual `state`. A fifth point is lost only because no authorization or retry guidance is offered.

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 critical state precondition and side effect are front-loaded in the first sentence, and the error contract follows. The final sentence about not showing UUIDs to users is a formatting instruction rather than tool semantics, which makes the description slightly top-heavy for its size.

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 two-parameter destructive mutation with an output schema and full annotation coverage, the definition supplies the precondition, the state transition, the impact on dependent data, and the failure modes. Nothing needed to invoke it correctly 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 description coverage is 100% and both parameters are documented with their provenance (draftId from draft_glossary or get_glossary_draft, glossaryId from list_glossaries), so the description adds nothing beyond the schema. Baseline 3 applies.

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 gives a specific verb and resource ("Close a `ready` draft as `discarded`") plus the scope of the effect on undecided candidates, so the action is unambiguous. It never names the sibling candidate-level tools (accept/reject_glossary_draft_candidates) as the contrasting alternative, so it stops just short of full sibling differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is strongly implied by the stated precondition ("unless the draft is `ready`") and the motivating outcome ("so the glossary can be drafted again"). However, there is no explicit when-to-use-this-versus-that guidance against accept_glossary_draft_candidates or reject_glossary_draft_candidates, which are the obvious near-miss alternatives.

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.