Skip to main content
Glama

Capture word

capture_word

Saves one or more target-language words or phrases from the conversation to the user's MindDory deck. A new word becomes a flashcard in the user's default folder when it is in the word's language, otherwise in a chat folder for that language; a word already in the deck gets the new sentence recorded as another encounter. lang (ISO code of the word's own language) is required and the call is rejected without it; the target language is never guessed. words takes several items at once; gloss is a short source-language translation and context the sentence the word appeared in. Items without a letter (numbers, punctuation), items shorter than 3 characters (CJK and Hangul exempt) and common stop words in English, German, Spanish, French and Czech are skipped. source_lang defaults to the user's deck.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "capture_word"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoRequired. ISO code of the captured word's own language (en, de, es, zh, ...). The call is rejected without it.
wordNoSingle-word capture (legacy); `words` takes several.
glossNoShort translation in the source language.
wordsNoBatch capture. Each entry is {word, gloss?, context?}.
contextNoThe sentence where the word appeared.
folder_idNoOptional: id of the folder new cards go into (from list_folders). It must be a folder in the same language as `lang`. Omit it and the user's default folder is used when it is in the same language, otherwise a chat folder for that language. Words already in the deck stay where they are.
source_langNoISO code of the user's native/source language. Optional — defaults to the source language of the user's existing deck.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / folder_id / description
      Previous value: -"Optional: id of the folder new cards go into (from list_folders). It must be a folder in the same language as `lang`. Omit it and the user's default folder is used, or the \"Chat Discoveries\" folder when they have none. Words already in the deck stay where they are."New value: +"Optional: id of the folder new cards go into (from list_folders). It must be a folder in the same language as `lang`. Omit it and the user's default folder is used when it is in the same language, otherwise a chat folder for that language. Words already in the deck stay where they are."
  2. Changed4 schema fields changed
    • changedInput schema / properties / gloss / description
      Previous value: -"Short translation in the source language. Strongly recommended."New value: +"Short translation in the source language."
    • changedInput schema / properties / lang / description
      Previous value: -"REQUIRED. ISO code of the captured word's own language (en, de, es, zh, ...). The call is rejected if omitted — never leave it blank or guess from prior context."New value: +"Required. ISO code of the captured word's own language (en, de, es, zh, ...). The call is rejected without it."
    • changedInput schema / properties / word / description
      Previous value: -"Single-word capture (legacy). Use `words` for more than one."New value: +"Single-word capture (legacy); `words` takes several."
    • changedInput schema / properties / words / description
      Previous value: -"Batch capture. Each entry is {word, gloss?, context?}. Prefer this when capturing 2+ words from the same message."New value: +"Batch capture. Each entry is {word, gloss?, context?}."
  3. Changed1 schema field changed
    • addedInput schema / properties / folder_id
      Added value: +{
      +  "description": "Optional: id of the folder new cards go into (from list_folders). It must be a folder in the same language as `lang`. Omit it and the user's default folder is used, or the \"Chat Discoveries\" folder when they have none. Words already in the deck stay where they are.",
      +  "minimum": 1,
      +  "type": "integer"
      +}
  4. First observed

TDQS

A4.2/5.0
Behavior5/5

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

With only non-destructive write annotations supplied, the description carries real behavioral weight: it discloses folder routing rules (default vs chat folder), that existing words stay put, that a repeat capture is recorded as another encounter, and that missing 'lang' causes rejection rather than guessing. The skip rules (no letters, under 3 characters with CJK/Hangul exemption, stop words in five named languages) are exactly the kind of silent-drop behavior an agent must know about before composing a batch.

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?

Purpose is front-loaded and the dense single paragraph contains no filler sentences — each one states a rule or a default. The tradeoff is that the skip rules, folder logic and parameter notes all run together, so scanning for a specific constraint is harder than it would be with any separation.

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 a 7-parameter write tool with no output schema, the description covers rejection conditions, defaults, deduplication and filtering well. It never says what the call returns (created vs updated counts, skipped items), which is the main remaining gap, and it is slightly at odds with the schema formally listing zero required parameters while asserting lang is mandatory — though the description states the requirement plainly so an agent is not misled.

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 100%, so the baseline would be 3; the description earns an increment by explaining the intent behind parameters rather than restating them — 'gloss' as a short source-language translation, 'context' as the sentence the word appeared in, and 'source_lang' defaulting to the deck's source language. It adds little on 'folder_id' beyond what the schema already documents, which keeps it off a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence gives a specific verb and resource ('Saves one or more target-language words or phrases ... to the user's MindDory deck') and the rest explains the create-vs-encounter distinction. It is clearly separable from siblings like check_words or get_known_words by behavior, but no alternative tool is named, so sibling routing is only implicit.

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?

It establishes the context of use (words appearing in the conversation) and states that 'words' handles several items at once while 'word' is a legacy single capture, which effectively steers the agent to the batch parameter. What is missing is explicit guidance on when not to capture, e.g. whether to check existing cards first or what to do when the language is unknown beyond the call being rejected.

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.