Skip to main content
Glama

Update a glossary entry

update_glossary_entry
Destructive

Edit one entry of a glossary, by glossaryId (from list_glossaries) and entryId (from list_glossary). Every field is optional and an omitted one is untouched: sourceTerm renames the preferred term, description sets it (null clears it), forbiddenVariants replaces the set, doNotTranslate: true removes every target term (it cannot be sent with targets), and targets sets target terms by locale (null removes that one). Renaming onto another entry’s term is refused with GLOSSARY_ENTRY_EXISTS naming it; a spelling another entry claims, with GLOSSARY_SPELLING_TAKEN. Marks the translation-memory entries its old and new terms match stale. Locales are stored as written, and a run applies an entry whose locales equal its own ignoring case only — a pt_BR entry never reaches a pt-BR Workflow — so use the spelling the Workflow's definition declares (get_workflow). A glossary may be shared by projects and Workflows in the organisation: a change to it applies to every one of them (with project, only the terms of the addressed project's languages are listed or changed). The result's glossary.sharedWith names the others — tell the user which ones a change affects. While glossary.repositoryManaged is set, the glossary is synced from that project's asset repository and every write is refused. A glossary with origin fetched holds what it last fetched from its source, which fetched.sourceKind names: notion, a Notion data source (with the connection and the data source), or repository, one TBX or CSV glossary file of a GitHub repository (with the repository, branch and path); fetched.status is its fetch status. Every write to it is refused with GLOSSARY_FETCHED — tell the user to edit the Notion database, or the file on its branch, instead. These tools edit the stored glossaries. A Workflow listed in list_glossaries repositoryWorkflows reads docs/glossary.tbx or docs/glossary.csv on its repository's triggering commit instead, so its terms are edited in that file, through a pull request. Style setup's drafts pull request in the web app adds a missing style guide or context file, never a glossary file. 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>",
      "entryId": "<entryId>"
    },
    "name": "update_glossary_entry"
  }
}

Input Schema

NameRequiredDescriptionDefault
entryIdYesThe entry id, from list_glossary
targetsNoTarget locale → target term to set, or null to remove it. Locales not named are untouched.
glossaryIdYesGlossary id, from list_glossaries
sourceTermNoThe new preferred term
descriptionNo
doNotTranslateNo
forbiddenVariantsNoReplaces the set.

Output Schema

NameRequiredDescriptionDefault
entryYes
glossaryYesThe glossary the call reached and what else uses it

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedOutput schema / properties / glossary / properties / fetched / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "connection": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "id": {
      -            "type": "string"
      -          },
      -          "name": {
      -            "type": "string"
      -          },
      -          "status": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "name",
      -          "status"
      -        ],
      -        "type": "object"
      -      },
      -      "dataSource": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "id": {
      -            "type": "string"
      -          },
      -          "title": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "title"
      -        ],
      -        "type": "object"
      -      },
      -      "lastAttempt": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": {},
      -            "properties": {
      -              "at": {
      -                "type": "string"
      -              },
      -              "outcome": {
      -                "enum": [
      -                  "fetched",
      -                  "failed"
      -                ],
      -                "type": "string"
      -              },
      -              "reason": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              }
      -            },
      -            "required": [
      -              "at",
      -              "outcome",
      -              "reason"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "lastGoodFetchAt": {
      -        "description": "When its last good fetch started; null until one",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "mapping": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "sourceLocale": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "sourceLocale"
      -        ],
      -        "type": "object"
      -      },
      -      "omittedWarnings": {
      -        "type": "number"
      -      },
      -      "pendingMapping": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": {},
      -            "properties": {
      -              "sourceLocale": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "sourceLocale"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "status": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "state": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "state"
      -        ],
      -        "type": "object"
      -      },
      -      "warnings": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "row": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "id": {
      -                  "type": "string"
      -                },
      -                "title": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "id",
      -                "title"
      -              ],
      -              "type": "object"
      -            }
      -          },
      -          "required": [
      -            "row"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "connection",
      -      "dataSource",
      -      "lastGoodFetchAt",
      -      "lastAttempt",
      -      "status",
      -      "mapping",
      -      "pendingMapping",
      -      "warnings",
      -      "omittedWarnings"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "oneOf": [
      +      {
      +        "additionalProperties": {},
      +        "properties": {
      +          "connection": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "id": {
      +                "type": "string"
      +              },
      +              "name": {
      +                "type": "string"
      +              },
      +              "status": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "name",
      +              "status"
      +            ],
      +            "type": "object"
      +          },
      +          "dataSource": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "id": {
      +                "type": "string"
      +              },
      +              "title": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "title"
      +            ],
      +            "type": "object"
      +          },
      +          "lastAttempt": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "at": {
      +                    "type": "string"
      +                  },
      +                  "outcome": {
      +                    "enum": [
      +                      "fetched",
      +                      "failed"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "reason": {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "at",
      +                  "outcome",
      +                  "reason"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "lastGoodFetchAt": {
      +            "description": "When its last good fetch started; null until one",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "mapping": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "sourceLocale": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "sourceLocale"
      +            ],
      +            "type": "object"
      +          },
      +          "omittedWarnings": {
      +            "type": "number"
      +          },
      +          "pendingMapping": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "sourceLocale": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "sourceLocale"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "sourceKind": {
      +            "const": "notion",
      +            "description": "Its entries come from a Notion data source, through `connection`",
      +            "type": "string"
      +          },
      +          "status": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "state": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "state"
      +            ],
      +            "type": "object"
      +          },
      +          "warnings": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "row": {
      +                  "additionalProperties": {},
      +                  "properties": {
      +                    "id": {
      +                      "type": "string"
      +                    },
      +                    "title": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "id",
      +                    "title"
      +                  ],
      +                  "type": "object"
      +                }
      +              },
      +              "required": [
      +                "row"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "sourceKind",
      +          "connection",
      +          "dataSource",
      +          "mapping",
      +          "pendingMapping",
      +          "lastGoodFetchAt",
      +          "lastAttempt",
      +          "status",
      +          "warnings",
      +          "omittedWarnings"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": {},
      +        "properties": {
      +          "branch": {
      +            "type": "string"
      +          },
      +          "lastAttempt": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "at": {
      +                    "type": "string"
      +                  },
      +                  "outcome": {
      +                    "enum": [
      +                      "fetched",
      +                      "failed"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "reason": {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "at",
      +                  "outcome",
      +                  "reason"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "lastFetchedCommitSha": {
      +            "description": "The commit its last good fetch read the file at; null until one",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "lastGoodFetchAt": {
      +            "description": "When its last good fetch started; null until one",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "omittedWarnings": {
      +            "type": "number"
      +          },
      +          "path": {
      +            "type": "string"
      +          },
      +          "pendingFile": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "branch": {
      +                    "type": "string"
      +                  },
      +                  "path": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "branch",
      +                  "path"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "description": "A changed branch and path (set_glossary_file) awaiting their first good fetch"
      +          },
      +          "repository": {
      +            "additionalProperties": {},
      +            "description": "By GitHub’s repository id, which survives a rename",
      +            "properties": {
      +              "fullName": {
      +                "type": "string"
      +              },
      +              "id": {
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "fullName"
      +            ],
      +            "type": "object"
      +          },
      +          "sourceKind": {
      +            "const": "repository",
      +            "description": "Its entries come from one TBX or CSV file of a GitHub repository, at `path` on `branch`",
      +            "type": "string"
      +          },
      +          "sourceLocale": {
      +            "type": "string"
      +          },
      +          "status": {
      +            "additionalProperties": {},
      +            "description": "`needs_reconnect`: no GitHub App installation of the organisation can see the repository. `file_pending`: `pendingFile` awaits its first good fetch; `failed` with `filePending: true`: the fetch with it failed, keeping the current branch, path and entries",
      +            "properties": {
      +              "state": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "state"
      +            ],
      +            "type": "object"
      +          },
      +          "warnings": {
      +            "description": "Rows, columns or language sections of the file skipped or partly read",
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "code": {
      +                  "type": "string"
      +                },
      +                "message": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "code",
      +                "message"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "sourceKind",
      +          "repository",
      +          "branch",
      +          "path",
      +          "pendingFile",
      +          "sourceLocale",
      +          "lastGoodFetchAt",
      +          "lastFetchedCommitSha",
      +          "lastAttempt",
      +          "status",
      +          "warnings",
      +          "omittedWarnings"
      +        ],
      +        "type": "object"
      +      }
      +    ]
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / glossary / properties / fetched / description
      Previous value: -"A fetched glossary’s connection, data source, mapping and fetch status; null for a written one"New value: +"A fetched glossary’s source (by `sourceKind`: a Notion one’s connection, data source and mapping; a repository one’s repository, branch, path and source locale) and fetch status; null for a written one"
    • changedOutput schema / properties / glossary / properties / origin / description
      Previous value: -"`fetched`: its entries are fetched from a Notion data source, and writes are refused"New value: +"`fetched`: its entries are fetched from a Notion data source or a repository’s glossary file, and writes are refused"
  2. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. Changed3 schema fields changed
    • addedOutput schema / properties / glossary / properties / fetched
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {},
      +      "properties": {
      +        "connection": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "id": {
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": "string"
      +            },
      +            "status": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "name",
      +            "status"
      +          ],
      +          "type": "object"
      +        },
      +        "dataSource": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "id": {
      +              "type": "string"
      +            },
      +            "title": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "title"
      +          ],
      +          "type": "object"
      +        },
      +        "lastAttempt": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": {},
      +              "properties": {
      +                "at": {
      +                  "type": "string"
      +                },
      +                "outcome": {
      +                  "enum": [
      +                    "fetched",
      +                    "failed"
      +                  ],
      +                  "type": "string"
      +                },
      +                "reason": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "at",
      +                "outcome",
      +                "reason"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "lastGoodFetchAt": {
      +          "description": "When its last good fetch started; null until one",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "mapping": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "sourceLocale": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "sourceLocale"
      +          ],
      +          "type": "object"
      +        },
      +        "omittedWarnings": {
      +          "type": "number"
      +        },
      +        "pendingMapping": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": {},
      +              "properties": {
      +                "sourceLocale": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "sourceLocale"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "status": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "state": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "state"
      +          ],
      +          "type": "object"
      +        },
      +        "warnings": {
      +          "items": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "row": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "id": {
      +                    "type": "string"
      +                  },
      +                  "title": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "id",
      +                  "title"
      +                ],
      +                "type": "object"
      +              }
      +            },
      +            "required": [
      +              "row"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "connection",
      +        "dataSource",
      +        "lastGoodFetchAt",
      +        "lastAttempt",
      +        "status",
      +        "mapping",
      +        "pendingMapping",
      +        "warnings",
      +        "omittedWarnings"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "A fetched glossary’s connection, data source, mapping and fetch status; null for a written one"
      +}
    • addedOutput schema / properties / glossary / properties / origin
      Added value: +{
      +  "description": "`fetched`: its entries are fetched from a Notion data source, and writes are refused",
      +  "enum": [
      +    "written",
      +    "fetched"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / glossary / required
      Previous value: -[
      -  "id",
      -  "name",
      -  "sharedWith",
      -  "repositoryManaged"
      -]New value: +[
      +  "id",
      +  "name",
      +  "sharedWith",
      +  "repositoryManaged",
      +  "origin",
      +  "fetched"
      +]
  4. Added

TDQS

A4.6/5.0
Behavior4/5

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

Well beyond the annotations: omitted fields are untouched, null clears, forbiddenVariants replaces, doNotTranslate removes targets and cannot be combined with targets, and specific error codes (GLOSSARY_ENTRY_EXISTS, GLOSSARY_SPELLING_TAKEN, GLOSSARY_FETCHED) are documented. It also discloses side effects — translation-memory entries going stale and shared glossaries propagating changes org-wide — which the destructiveHint alone would not convey. It does not cover concurrency or whether a rename is reversible, so it falls just short of the top.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The information density is high, but the text is one long run-on block with em-dash clauses that make it easy to miss the central edit semantics. Some content is cross-cutting policy rather than this tool's contract — the note that style setup's draft pull request never adds a glossary file, and the closing instruction about never showing UUIDs in replies — which dilutes the front-loaded core.

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?

For a destructive mutation with nested per-locale objects and an output schema, this is essentially complete: it covers write-refusal conditions, shared-glossary scope, locale edge cases, and points at glossary.sharedWith as the way to tell the user who is affected. Nothing needed to invoke it safely is absent.

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

Parameters5/5

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

With schema coverage at 71%, the description compensates fully: it explains the null semantics for description and per-locale targets, replace-vs-merge for forbiddenVariants, the mutual exclusion between doNotTranslate and targets, and the exact-match locale rule (pt_BR never reaches a pt-BR Workflow). This adds genuine meaning the schema does not encode.

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?

Opens with a specific verb and resource ('Edit one entry of a glossary') and immediately keys it to glossaryId/entryId with the sibling calls that supply them. It is unambiguously distinct from list_glossary, add_glossary_entries and delete_glossary_entry.

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?

Explicitly routes away from this tool in several cases: repositoryWorkflows entries are edited in docs/glossary.tbx via pull request, fetched glossaries must be edited at their Notion database or source file, and repositoryManaged glossaries refuse all writes. It also names get_workflow as the source of the correct locale spelling, so the agent knows where to go rather than guessing.

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.