Skip to main content
Glama

Save a chosen Mandarin word to Backpack

save_mandarin_word
Idempotent

Use this when the learner explicitly asks to save, keep or remember a word: saves one word from the exact passage to the connected MTW Backpack, where Review brings it back. Re-inspects the word through MTW; for an ambiguous meaning, pass only the sense ID the learner selected from the offered choices. Preserve text, context and title. Use one operation UUID for this save and reuse it after a lost reply. Does not mark the word known, grade recall, or save the entire passage.

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": {
      "text": "<text>",
      "offset": "<offset>",
      "operation": "<operation>",
      "confirm": "<confirm>",
      "destination": "<destination>"
    },
    "name": "save_mandarin_word"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe Mandarin passage exactly as the learner gave it, or exactly as you wrote it for them, including punctuation and whitespace; at most 4,096 Unicode code points. Never translate or rewrite a learner's text.
zoneNoThe learner's IANA time zone, when known, so the save counts on their own day.
titleNo
choiceNo
offsetYes
confirmYes
operationYes
destinationYesDestination returned by get_mandarin_account. A consistency check, never account authority.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / text / description
      Previous value: -"Exact original Mandarin passage, including punctuation and whitespace; at most 4,096 Unicode code points. Do not translate or rewrite it."New value: +"The Mandarin passage exactly as the learner gave it, or exactly as you wrote it for them, including punctuation and whitespace; at most 4,096 Unicode code points. Never translate or rewrite a learner's text."
    • addedInput schema / properties / zone
      Added value: +{
      +  "description": "The learner's IANA time zone, when known, so the save counts on their own day.",
      +  "maxLength": 100,
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare non-read-only, idempotent, non-destructive, closed-world; the description goes beyond them with retry semantics ('use one operation UUID for this save and reuse it after a lost reply'), which is the key operational detail for a save-after-lost-reply situation. It also discloses that the tool re-inspects the word through MTW and clarifies that destination is a consistency check, not account authority.

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

Conciseness4/5

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

Front-loads the trigger and destination in the first clause, then adds constraints in descending priority, with no filler sentences. It is dense to the point of being hard to parse in one pass, since save rules, retry rules and exclusions are packed into a single paragraph.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter mutation tool with no output schema, it covers the trigger, retry semantics, sense selection, and explicit non-goals. It stops short of saying what a successful save returns or how the learner-visible confirmation appears, which is the main remaining gap given there is no output schema.

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 low (38%), so the description must carry weight, and it does: it explains the 'choice' parameter for ambiguous meanings, the operation UUID reuse rule, the preserve-text/context/title rule, and that text must be verbatim. Gaps remain for 'offset' and 'zone', which the description only gesture at ('context', 'aa learner's day' implied), so not full compensation.

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?

States a concrete verb and resource ('saves one word from the exact passage to the connected MTW Backpack') plus a clear scope limit. It also draws the boundary against neighbouring behaviors ('Does not mark the word known, grade recall, or save the entire passage'), so an agent knows this is a single-word save, not a passage or progress operation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger condition: use it when the learner explicitly asks to save, keep or remember a word, and adds a conditional rule for ambiguous meanings (pass only the learner-selected sense ID). It gives negative exclusions but never names a concrete alternative tool for those cases (e.g., the sibling inspect_mandarin_word), so routing relies on inference.

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.

Resources