Skip to main content
Glama

Save a word

save_word
DestructiveIdempotent

Creates a word, or updates an existing word when itemId and expectedVersion are both provided. Matching text alone never updates an existing word. Updates are patches: omitted fields stay unchanged and null clears supported fields. definitions edits a meaning by ID or adds one without an ID; removeDefinitionIds deletes those meanings with their examples and meaning progress; removing every meaning keeps the word. Each retained meaning needs definition text or a translation. appendExamples keeps existing examples, replaceExamples replaces them ([] clears), and the two cannot be combined. addGroupIds and removeGroupIds change only the listed memberships. imageUrl accepts a durable public HTTPS image URL; null removes the image. requestId makes retries idempotent when the input is identical. Subject to the plan's word limit.

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": {
      "requestId": "<requestId>",
      "languageCode": "<languageCode>"
    },
    "name": "save_word"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNo
itemIdNoID of an existing word to update. Omit, together with expectedVersion, to create a word.
commentNo
imageUrlNoDurable public HTTPS URL of the image to set, or null to remove the image. Omitted keeps the current image.
requestIdYes
addGroupIdsNo
definitionsNoMeaning patches. An existing definition ID edits that meaning; an entry without an ID adds a meaning. Omitted meanings and fields stay unchanged.
languageCodeYesCode of the learning language, for example en-GB or es-ES.
removeGroupIdsNo
expectedVersionNoOpaque revision token from the latest read or save of this item. A stale token returns WORD_CHANGED or GROUP_CHANGED without saving.
removeDefinitionIdsNo

Output Schema

NameRequiredDescriptionDefault
itemNo
textNo
itemIdNo
statusNo
messageNo
versionNo
examplesOmittedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already disclose destructive, idempotent, and non-read-only behavior, and the description adds substantial context: updates are patches, omitted fields stay unchanged, null clears supported fields, deletions remove meanings with examples and progress, and stale versions fail without saving. The only minor gap is that it does not restate the safety profile already covered by annotations.

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

Conciseness5/5

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

The description is dense but front-loaded: create/update rules come first, followed by patch semantics, field-specific rules, and operational constraints. Every sentence carries relevant behavioral guidance for this complex 11-parameter tool, with no filler.

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?

Given the tool's complexity, annotations, and existing output schema, the description covers the key create/update, patch, deletion, example, group, image, idempotency, and plan-limit behaviors an agent needs. A minor gap is that languageCode and the text/comment fields are left to the schema, but the core operational completeness is strong.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Despite only 45% schema description coverage, the description compensates by explaining the semantics of itemId plus expectedVersion, definitions by ID versus without ID, removeDefinitionIds cascading effects, appendExamples versus replaceExamples incompatibility, addGroupIds/removeGroupIds membership changes, imageUrl HTTPS/null behavior, and requestId idempotency. It adds meaning well beyond the raw schema for the most complex parameters.

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?

The description gives a specific verb and resource, clearly states create-versus-update behavior, and explicitly says matching text alone never updates an existing word. That distinguishes the tool's save semantics from read or lookup siblings without needing their schemas.

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?

It states the exact conditions for updating (itemId and expectedVersion both provided) versus creating (both omitted), and clarifies that matching text alone does not trigger an update. It also gives concrete rules for definitions, examples, groups, images, and idempotent retries, so the agent knows how to choose between patch operations.

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.