Skip to main content
Glama

Add glossary entries

add_glossary_entries
Destructive

Add (or update) glossary entries in one call. By glossaryId (from list_glossaries), each row is an entry: its sourceTerm and sourceLocale, and optionally a description, forbiddenVariants, doNotTranslate and targets (target locale → target term). Rows are upserted on (sourceLocale, sourceTerm): an existing entry keeps every field the row omits, and its targets are merged by locale. The batch is one transaction: a row breaking a rule — a spelling another entry claims (GLOSSARY_SPELLING_TAKEN), doNotTranslate with targets, a target in the source locale, an unknown locale — refuses the whole call, naming the row (entries[i]). 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). With project (still accepted for an existing Project), each row is a pair with its own source and target term, its languages by locale or by project_language id (from get_project), upserted on (project, sourceTerm, source, target): re-adding an existing key updates its target term and its do-not-translate flag. Rows of one term that are all doNotTranslate make the term do-not-translate, covering every language; a translation for a do-not-translate term clears the flag, keeping its other identity pairs as plain translations. A pair bringing in a term the glossary has no entry for yet that another entry forbids as a variant refuses the whole call, naming the row (entries[i]) and that entry. In both forms terms are trimmed of leading and trailing whitespace before they are checked and stored, a source term empty once trimmed is refused, and matching translation-memory entries are marked stale so future translations pick up the change. 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": {
      "entries": "<entries>"
    },
    "name": "add_glossary_entries"
  }
}

Input Schema

NameRequiredDescriptionDefault
entriesYesThe rows to upsert: entries by glossaryId, pairs with project
projectNoProject id (UUID) or slug — still accepted for an existing Project's attached glossary. Pass this or glossaryId, not both.
glossaryIdNoGlossary id, from list_glossaries. Pass this or project, not both.

Output Schema

NameRequiredDescriptionDefault
entriesYes
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. Changed22 schema fields changed
    • changedInput schema / properties / entries / description
      Previous value: -"The glossary rows to upsert"New value: +"The rows to upsert: entries by glossaryId, pairs with project"
    • addedInput schema / properties / entries / items / properties / description
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 1000,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "By glossaryId only: what the term means (null clears it)"
      +}
    • changedInput schema / properties / entries / items / properties / doNotTranslate / description
      Previous value: -"Mark the term as do-not-translate — it must be kept verbatim. Defaults to false. Do-not-translate is set on the term, so it covers every language: the term is then listed as an identity pair (targetTerm equal to sourceTerm) into every one of the project's languages, whatever targetTerm you supply — pass an empty string."New value: +"Mark the term as do-not-translate — it must be kept verbatim. It is set on the term, so it covers every language. By glossaryId it holds no targets; with project the term is listed as an identity pair into every one of the project's languages, whatever targetTerm you supply — pass an empty string. Defaults to false on a new term."
    • addedInput schema / properties / entries / items / properties / forbiddenVariants
      Added value: +{
      +  "description": "By glossaryId only: spellings ruled out in source text in favour of sourceTerm; replaces the set",
      +  "items": {
      +    "maxLength": 500,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
    • addedInput schema / properties / entries / items / properties / sourceLocale
      Added value: +{
      +  "description": "Source locale. Required by glossaryId; with project, in place of sourceProjectLanguageId",
      +  "maxLength": 35,
      +  "minLength": 2,
      +  "type": "string"
      +}
    • changedInput schema / properties / entries / items / properties / sourceProjectLanguageId / description
      Previous value: -"project_language id of the source language (from get_project)"New value: +"With project only: project_language id of the source language (from get_project)"
    • changedInput schema / properties / entries / items / properties / sourceTerm / description
      Previous value: -"The term as it appears in the source language (max 500 chars)"New value: +"The term as it appears in the source language — by glossaryId, the entry's preferred term (max 500 chars)"
    • addedInput schema / properties / entries / items / properties / targetLocale
      Added value: +{
      +  "description": "With project only: target locale, in place of targetProjectLanguageId",
      +  "maxLength": 35,
      +  "minLength": 2,
      +  "type": "string"
      +}
    • changedInput schema / properties / entries / items / properties / targetProjectLanguageId / description
      Previous value: -"project_language id of the target language (from get_project)"New value: +"With project only: project_language id of the target language (from get_project)"
    • changedInput schema / properties / entries / items / properties / targetTerm / description
      Previous value: -"The term as it should appear in the target language (max 500 chars). May be empty only when doNotTranslate is true, in which case it is ignored."New value: +"With project only: the term as it should appear in the target language (max 500 chars). May be empty only when doNotTranslate is true, in which case it is ignored."
    • addedInput schema / properties / entries / items / properties / targets
      Added value: +{
      +  "additionalProperties": {
      +    "maxLength": 500,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "description": "By glossaryId only: target locale → target term, merged into the entry by locale. None for a do-not-translate entry.",
      +  "propertyNames": {
      +    "maxLength": 35,
      +    "minLength": 2,
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • changedInput schema / properties / entries / items / required
      Previous value: -[
      -  "sourceTerm",
      -  "targetTerm",
      -  "sourceProjectLanguageId",
      -  "targetProjectLanguageId"
      -]New value: +[
      +  "sourceTerm"
      +]
    • addedInput schema / properties / glossaryId
      Added value: +{
      +  "description": "Glossary id, from list_glossaries. Pass this or project, not both.",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • changedInput schema / properties / project / description
      Previous value: -"Project id (UUID) or slug"New value: +"Project id (UUID) or slug — still accepted for an existing Project's attached glossary. Pass this or glossaryId, not both."
    • changedInput schema / required
      Previous value: -[
      -  "project",
      -  "entries"
      -]New value: +[
      +  "entries"
      +]
    • removedOutput schema / properties / entries / items / additionalProperties
      Removed value: -{}
    • addedOutput schema / properties / entries / items / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "doNotTranslate": {
      +        "type": "boolean"
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "projectId": {
      +        "type": "string"
      +      },
      +      "sourceLanguage": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "id": {
      +            "description": "project_language id",
      +            "type": "string"
      +          },
      +          "locale": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "locale",
      +          "name"
      +        ],
      +        "type": "object"
      +      },
      +      "sourceTerm": {
      +        "type": "string"
      +      },
      +      "targetLanguage": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "id": {
      +            "description": "project_language id",
      +            "type": "string"
      +          },
      +          "locale": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "locale",
      +          "name"
      +        ],
      +        "type": "object"
      +      },
      +      "targetTerm": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "projectId",
      +      "sourceTerm",
      +      "targetTerm",
      +      "sourceLanguage",
      +      "targetLanguage",
      +      "doNotTranslate"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "createdAt": {
      +        "type": "string"
      +      },
      +      "description": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "doNotTranslate": {
      +        "description": "Kept as written in every language; it then has no targets",
      +        "type": "boolean"
      +      },
      +      "forbiddenVariants": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "glossaryId": {
      +        "type": "string"
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "sourceLanguage": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "id": {
      +            "description": "Catalog language id, null for a locale not in the catalog",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "locale": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "locale",
      +          "name"
      +        ],
      +        "type": "object"
      +      },
      +      "sourceTerm": {
      +        "description": "The preferred term",
      +        "type": "string"
      +      },
      +      "targets": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "targetLanguage": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "id": {
      +                  "description": "Catalog language id, null for a locale not in the catalog",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "locale": {
      +                  "type": "string"
      +                },
      +                "name": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "id",
      +                "locale",
      +                "name"
      +              ],
      +              "type": "object"
      +            },
      +            "targetTerm": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "targetLanguage",
      +            "targetTerm"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "updatedAt": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "glossaryId",
      +      "sourceLanguage",
      +      "sourceTerm",
      +      "description",
      +      "forbiddenVariants",
      +      "doNotTranslate",
      +      "targets",
      +      "createdAt",
      +      "updatedAt"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties / entries / items / properties
      Removed value: -{
      -  "doNotTranslate": {
      -    "type": "boolean"
      -  },
      -  "id": {
      -    "type": "string"
      -  },
      -  "projectId": {
      -    "type": "string"
      -  },
      -  "sourceLanguage": {
      -    "additionalProperties": {},
      -    "properties": {
      -      "id": {
      -        "description": "project_language id",
      -        "type": "string"
      -      },
      -      "locale": {
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "locale",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  "sourceTerm": {
      -    "type": "string"
      -  },
      -  "targetLanguage": {
      -    "additionalProperties": {},
      -    "properties": {
      -      "id": {
      -        "description": "project_language id",
      -        "type": "string"
      -      },
      -      "locale": {
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "locale",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  "targetTerm": {
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / properties / entries / items / required
      Removed value: -[
      -  "id",
      -  "projectId",
      -  "sourceTerm",
      -  "targetTerm",
      -  "sourceLanguage",
      -  "targetLanguage",
      -  "doNotTranslate"
      -]
    • removedOutput schema / properties / entries / items / type
      Removed value: -"object"
    • changedOutput schema / properties / glossary / description
      Previous value: -"The project's attached glossary and what else uses it"New value: +"The glossary the call reached and what else uses it"
    • changedOutput schema / properties / glossary / properties / sharedWith / properties / projects / description
      Previous value: -"Other projects attached to the glossary"New value: +"Projects attached to the glossary, other than the one addressed"
  5. Changed1 schema field changed
    • changedInput schema / properties / entries / items / properties / doNotTranslate / description
      Previous value: -"Mark the term as do-not-translate — it must be kept verbatim in the target language. Defaults to false. When true the stored targetTerm is forced to equal sourceTerm, whatever targetTerm you supply — pass an empty string."New value: +"Mark the term as do-not-translate — it must be kept verbatim. Defaults to false. Do-not-translate is set on the term, so it covers every language: the term is then listed as an identity pair (targetTerm equal to sourceTerm) into every one of the project's languages, whatever targetTerm you supply — pass an empty string."
  6. Changed2 schema fields changed
    • addedOutput schema / properties / glossary
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "The project's attached glossary and what else uses it",
      +  "properties": {
      +    "id": {
      +      "type": "string"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "repositoryManaged": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "branch": {
      +              "type": "string"
      +            },
      +            "gitUrl": {
      +              "type": "string"
      +            },
      +            "projectId": {
      +              "type": "string"
      +            },
      +            "repositoryId": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "projectId",
      +            "repositoryId",
      +            "gitUrl",
      +            "branch"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "The project whose asset repository the glossary is synced from (writes are refused), or null"
      +    },
      +    "sharedWith": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "projects": {
      +          "description": "Other projects attached to the glossary",
      +          "items": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "id": {
      +                "type": "string"
      +              },
      +              "name": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "name"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "workflows": {
      +          "description": "Active Workflows using the glossary",
      +          "items": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "id": {
      +                "type": "string"
      +              },
      +              "name": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "name"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "projects",
      +        "workflows"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "name",
      +    "sharedWith",
      +    "repositoryManaged"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "entries"
      -]New value: +[
      +  "entries",
      +  "glossary"
      +]
  7. Changed4 schema fields changed
    • changedInput schema / properties / entries / items / properties / sourceTerm / description
      Previous value: -"The term as it appears in the source language"New value: +"The term as it appears in the source language (max 500 chars)"
    • addedInput schema / properties / entries / items / properties / sourceTerm / maxLength
      Added value: +500
    • changedInput schema / properties / entries / items / properties / targetTerm / description
      Previous value: -"The term as it should appear in the target language. May be empty only when doNotTranslate is true, in which case it is ignored."New value: +"The term as it should appear in the target language (max 500 chars). May be empty only when doNotTranslate is true, in which case it is ignored."
    • addedInput schema / properties / entries / items / properties / targetTerm / maxLength
      Added value: +500
  8. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare destructiveHint=true and readOnlyHint=false; the description supplies the substance behind that: rows upsert on (sourceLocale, sourceTerm) or (project, sourceTerm, source, target), omitted fields are preserved, targets merge by locale, forbiddenVariants replaces its set, the batch is a single all-or-nothing transaction with named row indexes and error codes on failure, terms are trimmed, and matching translation-memory entries are marked stale. It also discloses blast radius — a shared glossary change affects every project and Workflow, reported via glossary.sharedWith — which is exactly what an agent needs before a destructive write.

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 purpose and mode split are front-loaded, but the remainder is one dense paragraph that runs long and mixes in material of marginal relevance to invoking the tool — the style-setup drafts-PR aside and the closing instruction on never showing UUIDs to the user are generic house style, not call-shaping guidance. The information is valuable but would land better split into usage, rules, and refusal sections.

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, transactional batch upsert this is complete: it covers both input forms, merge and override rules, the refusal surface with error codes, the affected-blast-radius warning, and the read-only glossary kinds the agent must steer around. Return-value detail is partly covered by the output schema, and the description still flags the return fields (sharedWith, repositoryManaged, origin, fetched.sourceKind/status) that change what the agent should tell the user.

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 100%, so the schema already defines each field; the description still adds the semantics the schema cannot express, notably the upsert keys, how project-mode pairs differ from glossaryId-mode entries, how doNotTranslate overrides targetTerm and applies across every language, and the case-insensitive locale matching pitfall (a pt_BR entry never reaching a pt-BR Workflow).

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?

The opening sentence gives a specific verb and resource ('Add (or update) glossary entries in one call') and immediately frames the upsert semantics. It then explicitly separates the two invocation modes — entries keyed by glossaryId versus term pairs keyed by project — which is the distinction an agent most needs and which no sibling tool covers.

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?

The description goes well past context into explicit when-not conditions and alternates: writes to a repositoryManaged glossary are refused, writes to a fetched glossary are refused with GLOSSARY_FETCHED and the agent is told to redirect the user to the Notion database or the file on its branch, and glossaries whose Workflow appears in repositoryWorkflows are edited through a pull request instead. It names prerequisites (list_glossaries, get_project, get_workflow) and rules out style-setup drafts PRs as a route for glossary files.

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.