Skip to main content
Glama

Understand a word in its sentence

inspect_mandarin_word
Read-only

Use this when the learner asks what one Mandarin word or pattern means, how it is said or what it is made of: pass its sentence and the word's offset, or the word alone at offset 0. Returns MTW’s contextual word card with expected pinyin, meaning status, parts and offered alternatives. Count Unicode code points, not UTF-16 units; preserve the original passage. A null card means no applicable Mandarin target. Does not save or grade learning.

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>"
    },
    "name": "inspect_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.
titleNo
offsetYesZero-based Unicode code-point position in the original text.

Output Schema

NameRequiredDescriptionDefault
cardYes
kindYes
textYes
titleYes
engineYes
offsetYes
persistedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field 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."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive, closed-world, so safety is covered; the description adds real value by disclosing the return shape (contextual word card with pinyin, meaning status, parts, alternatives) and the null-card case meaning no applicable target. It omits any mention of auth, rate limits, or error behavior, which keeps it below a 5.

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-loaded with the usage trigger, then the calling pattern, then return semantics and the null case. Dense and mostly waste-free, though the offset/code-point warning partially restates the schema, and the final sentence reads as a tacked-on disclaimer.

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?

Covers when to call, how to call it, what comes back, and how to interpret a null result, which is ample for a read-only lookup with a declared output schema. The only meaningful gap is the undocumented optional 'title' parameter.

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 67%, and the description compensates by stressing that offsets are Unicode code points rather than UTF-16 units and that the original passage must be preserved, which is the most common failure mode for this parameter type. It also explains the offset-0 shortcut for single words, but leaves the optional 'title' parameter unaddressed.

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 specific verb and resource ('what one Mandarin word or pattern means, how it is said or what it is made of') and scopes it to a single word inside its sentence. The closing line 'Does not save or grade learning' implicitly separates it from save_mandarin_word, so an agent can pick it without opening another schema.

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 a clear triggering condition ('when the learner asks what one Mandarin word or pattern means') plus a concrete calling pattern (sentence + offset, or the word alone at offset 0). It also states an exclusion (no saving or grading), though it never names the sibling tool to use instead for those cases.

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