Skip to content

glossary_create

Create a glossary entry. rule_type is one of translation | do_not_translate | forbidden and defaults to 'translation'. translations ({: value}) is honored only for rule_type='translation' (cleared otherwise by the backend). Returns the created GlossaryEntry. Errors 409 if an entry with the same (rule_type, term) already exists - use glossary_update to change an existing one.

NameTypeDescription
project_uuidstringoptionalProject UUID. Required when multiple projects are configured (SONENTA_PROJECTS); defaults to the single configured project otherwise.
rule_typestringoptionalRule type. Defaults to 'translation'. (translation, do_not_translate, forbidden)
termstringrequiredThe source term/phrase the rule applies to.
translationsobjectoptionalPer-locale target translations, e.g. {"fr": "tableau de bord"}. Only used for rule_type='translation'.
case_sensitivebooleanoptionalMatch the term case-sensitively.
notestringoptionalOptional human note.
{
"tool": "glossary_create",
"arguments": {
"term": "<term>"
}
}