Skip to main content
Glama

Change the branch and path a glossary is fetched from

set_glossary_file
Destructive

Change which branch and path of its repository a glossary fetched from a repository reads (fetched.sourceKind repository). The branch is checked live and the path must end .tbx or .csv. The new pair waits as fetched.pendingFile while a fetch with it runs in the background, and replaces the branch and path — and the entries — only once that fetch succeeds; a failed one keeps them, shown as fetched.status failed with filePending: true and the reason. The current branch and path again drop a pending pair and fetch nothing. The repository and source locale are fixed: to read another, create another glossary (create_repository_glossary). Needs no Feature grant. Refused with GLOSSARY_BRANCH_NOT_FOUND, GLOSSARY_REPOSITORY_NOT_VISIBLE, and BAD_REQUEST for another extension or a glossary not fetched from a repository. 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>",
      "branch": "<branch>",
      "path": "<path>"
    },
    "name": "set_glossary_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFrom the repository’s root, ending `.tbx` or `.csv`, which names its format, e.g. `docs/glossary.tbx`
branchYes
glossaryIdYesFrom list_glossaries

Output Schema

NameRequiredDescriptionDefault
glossaryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations mark this as a destructive, non-read-only, open-world mutation; the description adds exactly the context they cannot: the change is staged as `fetched.pendingFile` and only swaps branch, path, and entries once the background fetch succeeds, with failure preserving the old values and surfacing `status: failed`, `filePending: true`, and a reason. It also notes the branch is validated live, the extension constraint, that no Feature grant is required, and the concrete error codes (GLOSSARY_BRANCH_NOT_FOUND, GLOSSARY_REPOSITORY_NOT_VISIBLE). Nothing here contradicts the annotations.

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?

The pending/replacement semantics lead, followed by immutability, permissions, and error codes — a logical front-loaded order with no filler. The closing sentence about showing names and locales rather than UUIDs is a general reply-formatting rule rather than tool behavior, which is mildly off-topic for this definition.

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?

An output schema exists, so return values need no explanation, yet the description still explains the intermediate and failure state fields an agent must interpret (`pendingFile`, `status`, `filePending`). Combined with validation rules, permissions, and error codes, an agent has everything needed to invoke this correctly and interpret a failure.

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?

Schema coverage is 67%: the schema documents `path` (root-relative, .tbx/.csv naming the format) and `glossaryId` (from list_glossaries), but leaves `branch` undocumented. The description compensates for the undocumented parameter by stating the branch is checked live, implying it must exist in the repository, and restates the extension rule as a hard validation constraint rather than a formatting hint.

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?

States a specific verb and resource: change the branch and path a glossary is fetched from, scoped to glossaries with `fetched.sourceKind` `repository`. It is clearly distinguished from the sibling that handles a different repository/locale (create_repository_glossary), so an agent can route without opening the schema.

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

Usage Guidelines5/5

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

Names the alternative explicitly and the condition that selects it: the repository and source locale are fixed, so to read another you must create another glossary via create_repository_glossary. It also states refusal conditions (BAD_REQUEST for a glossary not fetched from a repository or a wrong extension), which tells the agent when this tool is inapplicable.

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.