save_translation_memory
Save a translation pair to the TM cache, enabling future lookups without re-calling the LLM. Upserts duplicate entries to track usage.
Instructions
Store a (source, target, sourceLang, targetLang) tuple in the TM cache. Useful when an agent has a known-good translation it wants future lookups to find without re-calling the LLM. Upserts on duplicate keys (increments the hits counter).
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": {
"source": "<source>",
"target": "<target>",
"sourceLang": "<sourceLang>",
"targetLang": "<targetLang>"
},
"name": "save_translation_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Source text. | |
| target | Yes | Target translation. | |
| sourceLang | Yes | Source language code. | |
| targetLang | Yes | Target language code. |