Draft a glossary from a Workflow
draft_glossaryStart a glossary draft: a model reads every distinct string of one of the organisation’s Workflows (from list_workflows) — its repository’s files in every locale and the translations Globalize holds for it — with its context, and proposes candidate entries with their evidence. Pass glossaryId (from list_glossaries) to draft into a written glossary, or leave it out to create a new written glossary, named name or else after the Workflow. Nothing reaches the glossary until accepted: the drafting runs in the background, so poll get_glossary_draft until its state is no longer generating, then review the candidates with the user and decide them with accept_glossary_draft_candidates and reject_glossary_draft_candidates. The organisation’s first draft to reach ready in a rolling 7 days is free; any other is paid, billed by its actual usage from the organisation’s credits. A paid draft starts only with confirmEstimateEur at least its estimate: without it the call starts nothing and answers started: false with estimateEur and when the next free draft frees up (nextFreeAt). Show the user that estimate, saying it is an estimate, and call again with it as confirmEstimateEur only after the user explicitly confirms. Refused, before anything is counted or billed, with WORKFLOW_NOT_FOUND, WORKFLOW_ARCHIVED, GLOSSARY_FETCHED for a fetched glossary (tell the user to edit its source instead), GLOSSARY_DRAFT_OPEN naming the glossary’s open draft (details.draftId), GLOSSARY_DRAFT_NOTHING_TO_READ for a Workflow with no strings, GLOSSARY_DRAFT_CORPUS_TOO_LARGE naming its distinct strings and the limit, GLOSSARY_DRAFT_SOURCE_UNAVAILABLE when its repository can’t be read right now, and, for a paid draft, INSUFFICIENT_CREDITS once the balance is at its overdraft limit. 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": {
"workflowId": "<workflowId>"
},
"name": "draft_glossary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Without glossaryId only: the new glossary’s name; the Workflow’s when left out | |
| glossaryId | No | A written glossary to draft into, from list_glossaries; leave out to create a new one | |
| workflowId | Yes | The Workflow to draft from, from list_workflows | |
| confirmEstimateEur | No | A paid draft’s estimate in EUR, as the user confirmed it; ignored for a free draft |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | The draft started, at `generating`; only when started | |
| started | Yes | false: the draft would be paid and its estimate is not confirmed, so nothing was started | |
| glossary | No | The glossary created for the draft, when started without glossaryId | |
| nextFreeAt | No | Unless started: when the next free draft frees up; null while this week’s is still drafting (it frees up should that one fail) | |
| estimateEur | No | Unless started: the paid draft’s estimate in EUR, to confirm as confirmEstimateEur | |
| freeDraftAvailable | No | Unless started: false |