Create a glossary fetched from a repository
create_repository_glossaryCreate a fetched glossary whose entries come from one TBX or CSV glossary file of a GitHub repository — typically the docs/glossary.tbx a GitHub Workflow reads — so that any Workflow (a Chatwoot or Contentful one included) can name it as its glossaryId and translate and judge with the same terms. Name the repository by an installation that sees it (installationId from list_github_installations), owner and repo, a branch (list_repository_branches) and the file’s path, ending .tbx or .csv, and the locale of its source terms; every other locale the file holds is a target. The glossary keeps the repository by GitHub’s id, so a rename keeps it, and any of the organisation’s GitHub App installations that can see the repository reads it; no Workflow is needed, and a Workflow claiming the repository doesn’t stop it. The repository and source locale are fixed; the branch and path change through set_glossary_file. Its first fetch starts at once, in the background: read fetched.status back (list_glossaries). The file then owns the glossary: every manual write is refused with GLOSSARY_FETCHED, and a fetch that fails (branch or file missing, unreadable, no section for the source locale, no usable rows) keeps the last good one. It is fetched again by fetch_glossary and by each push to its branch touching the file — never at a run’s start. Needs no Feature grant. Refused with GLOSSARY_REPOSITORY_NOT_VISIBLE when no installation sees the repository, GLOSSARY_BRANCH_NOT_FOUND, and BAD_REQUEST for another extension. 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": {
"name": "<name>",
"installationId": "<installationId>",
"owner": "<owner>",
"repo": "<repo>",
"branch": "<branch>",
"path": "<path>",
"sourceLocale": "<sourceLocale>"
},
"name": "create_repository_glossary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| path | Yes | From the repository’s root, ending `.tbx` or `.csv`, which names its format, e.g. `docs/glossary.tbx` | |
| repo | Yes | ||
| owner | Yes | ||
| branch | Yes | ||
| sourceLocale | Yes | The locale of the file’s source terms, as its column or language section spells it | |
| installationId | Yes | GitHub App installation id |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glossary | Yes |