Skip to main content
← MCP Tools

synonym_set

Replaces all aliases for a term with a new comma-separated list. Discards any previously added aliases.

Availability: single-repo stdio (travsr mcp) only. Not in global stdio or SSE.

Input schema​

{
"type": "object",
"required": ["term", "aliases"],
"properties": {
"term": {
"type": "string",
"description": "The query term to expand"
},
"aliases": {
"type": "string",
"description": "Comma-separated alias list. Replaces all existing aliases for the term."
}
},
"additionalProperties": false
}

aliases is a single comma-separated string, not a JSON array, e.g. "login, session, token". No repo parameter. Stdio (single-repo) sessions only, since this mutates the one open repo's dynamic synonym table.

Output​

A plain control string, not JSON: ok on success. On failure it is the store's own error text, most commonly fts_synonyms would exceed 200 rows. Use \travsr synonym remove` to make space.An invalidtermor any invalid entry inaliasesreturnsinvalid input` before the store is touched.