Accept a glossary draft’s candidates
accept_glossary_draft_candidatesWrite 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
| Name | Required | Description | Default |
|---|---|---|---|
| draftId | Yes | The draft’s id, from draft_glossary or get_glossary_draft | |
| candidates | Yes | Each field given replaces the candidate’s proposal | |
| 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 |