Skip to main content
Glama

Create a glossary fetched from a repository

create_repository_glossary

Create 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

NameRequiredDescriptionDefault
nameYes
pathYesFrom the repository’s root, ending `.tbx` or `.csv`, which names its format, e.g. `docs/glossary.tbx`
repoYes
ownerYes
branchYes
sourceLocaleYesThe locale of the file’s source terms, as its column or language section spells it
installationIdYesGitHub App installation id

Output Schema

NameRequiredDescriptionDefault
glossaryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Far beyond the annotations: it discloses the background first fetch and how to poll `fetched.status` via list_glossaries, the fetch triggers (fetch_glossary and pushes to the branch, never at run start), failure semantics (last good glossary kept), immutability of repository and source locale, and the exact error codes. It also clarifies that no Feature grant or Workflow is needed, which is non-obvious for an openWorldHint write.

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?

Front-loaded with the core action and heavily information-dense with no filler, but it is one long paragraph of stacked em-dash clauses and parentheticals. Splitting the trigger/error/ownership material into separate sentences would improve scanability without losing content.

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?

Given an output schema exists, return values needn't be described, and everything else an agent needs is present: param sourcing, async fetch behavior with polling path, mutation restrictions, re-fetch triggers, and failure/error modes. Nothing material is missing for a 7-parameter write tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With only 43% schema coverage, the description compensates well: it explains that installationId must come from an installation that can see the repo, that branch/path come from the repo and the path must end in .tbx or .csv, and that sourceLocale is the file's source-terms locale with all other locales treated as targets. Only `name` is left without added guidance, so a 4 rather than 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

A specific verb and resource: 'Create a fetched glossary whose entries come from one TBX or CSV glossary file of a GitHub repository', plus the immediate downstream use (a Workflow names it as glossaryId). It is clearly distinguished from siblings by contrasting with manual entry tools and by naming set_glossary_file/fetch_glossary as the later mutators.

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

Usage Guidelines4/5

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

It states the use case (so a Workflow, including Chatwoot/Contentful ones, can share terms) and implicitly the when-not: because the file 'owns the glossary' and manual writes are refused with GLOSSARY_FETCHED, an agent wanting manual entries should not call this. It also points to list_github_installations and list_repository_branches for parameter sources. No explicit exclusion versus add_glossary_entries is spelled out, so it falls just short of a 5.

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.