Skip to main content
Glama

Annotate a passage

annotate_passage

Every word of a Japanese or English passage as a row, in one call: the word as the passage writes it and where it sits, its language, its base form (the headword lookup_word takes), the kana reading chosen with the other readings the written form has, the inflected form it is written in with polarity and tone, the headword's pitch accent, how common the word is in five bands, its word class and the entry's first gloss. Call it before you say, teach or correct a sentence, rather than splitting it into words and looking each one up: a word is the longest run the dictionary holds as one written form, so 見に行きました is one row with its form named. The reading is the one chosen for the word, not a promise for a homograph: when it matters, read other_readings. The gloss is the entry's first, not the sense the passage uses; lookup_word has every sense. A word with no entry, a name for example, is a row with a null headword. passage is at most 500 characters: send a longer passage a few sentences at a time.

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": {
      "passage": "<passage>"
    },
    "name": "annotate_passage"
  }
}

Input Schema

NameRequiredDescriptionDefault
passageYesThe text as written, Japanese, English or both, at most 500 characters

Output Schema

NameRequiredDescriptionDefault
rowsYesA row for each word, in the order the passage writes them. Punctuation and symbols have no row
charactersYesThe characters the passage has, each drawn from the balance

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / rows / items / properties / frequency_band / description
      Previous value: -"How common the entry is in its language, in five bands"New value: +"How common the entry is in its language, in five bands. Null for a word with no entry and for an entry the dictionary has not ranked"
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full burden and does so: it discloses that the reading is the chosen one and not authoritative for homographs (read other_readings), that the gloss is the entry's first rather than the passage sense (use lookup_word for senses), and that unknown words or names appear as rows with a null headword. It also states the 500-character input limit and the batching strategy.

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 purpose and the field inventory, and each later sentence adds a distinct caveat (tokenization, readings, glosses, null headwords, length limit). The opening sentence is a dense comma-run of nine field descriptions that would read better as a list, which costs it a point.

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

Completeness5/5

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

For a single-parameter, read-oriented annotation tool this covers everything an agent needs: what comes back, how to interpret ambiguous fields, what happens on misses, and how to handle oversized input. An output schema exists, so the description's field enumeration is bonus context rather than a required substitute.

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?

With one parameter at 100% schema coverage the baseline is 3, but the description adds operational meaning beyond the schema: the passage may mix Japanese and English, and over-limit text should be sent a few sentences at a time rather than rejected. It does not add syntax or formatting constraints beyond what maxLength already declares.

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 ('annotate_passage' — every word of a passage as a row in one call) and enumerates the row fields, so an agent knows exactly what it produces. It also distinguishes itself from the sibling 'lookup_word' by naming the per-word lookup workflow it replaces.

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

Usage Guidelines5/5

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

Gives an explicit when: 'Call it before you say, teach or correct a sentence,' and an explicit instead-of: splitting the passage into words and looking each one up. It further explains the tokenization rationale (longest dictionary-held run, e.g. 見に行きました as one row) so the agent understands why the alternative is wrong.

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