Discard a glossary draft
discard_glossary_draftClose 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
| Name | Required | Description | Default |
|---|---|---|---|
| draftId | Yes | The draft’s id, from draft_glossary or get_glossary_draft | |
| glossaryId | Yes | Glossary id, from list_glossaries |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| state | Yes | ||
| billing | Yes | ||
| costEur | Yes | A paid draft’s actual cost | |
| failure | Yes | ||
| readyAt | Yes | ||
| strings | Yes | Distinct source strings read at the start | |
| closedAt | Yes | ||
| createdAt | Yes | ||
| startedBy | Yes | The member who started it, by Clerk user id | |
| candidates | Yes | In the order proposed; empty until `ready` | |
| chunkTotal | Yes | Parts the strings are read in; `null` until drafting has begun | |
| chunksDone | Yes | Parts of the strings the model has read | |
| glossaryId | Yes | ||
| workflowId | Yes | The draft subject; `null` once it is deleted | |
| estimateEur | Yes | A paid draft’s estimate | |
| sourceLocale | Yes | ||
| targetLocales | Yes |