Skip to main content
Glama

Remove a saved word

delete_word
DestructiveIdempotent

Permanently deletes one saved word with its meanings, examples, group memberships and practice progress. Requires the word's latest version from find_my_words or save_word; a stale version returns WORD_CHANGED without deleting. requestId makes retries idempotent.

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>",
      "itemId": "<itemId>",
      "expectedVersion": "<expectedVersion>"
    },
    "name": "delete_word"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemIdYesID of the saved word to delete.
requestIdYes
languageCodeYesCode of the learning language, for example en-GB or es-ES.
expectedVersionYesOpaque revision token from the latest read or save of this item. A stale token returns WORD_CHANGED or GROUP_CHANGED without saving.

Output Schema

NameRequiredDescriptionDefault
textNo
itemIdNo
statusNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint and idempotentHint, and the description adds the details that matter: exactly what data is destroyed by the cascade, that deletion is permanent, the optimistic-concurrency contract with expectedVersion, and how requestId makes retries safe. This is behavior beyond structured fields rather than a restatement of them.

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?

Three sentences, front-loaded with the destructive action and its blast radius, then prerequisites, then retry semantics. No filler and nothing repeated from annotations or schema.

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 destructive four-parameter tool with an output schema, the description covers the risk profile, the version-token dependency, the named error code for stale writes, and idempotency. Nothing an agent needs before calling it is missing.

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 75% and the one undescribed parameter, requestId, is explained in the description as the idempotency key for retries. expectedVersion and itemId are covered by the schema; languageCode's enum is self-explanatory. The description adds real meaning for the gap parameter.

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 ("Permanently deletes one saved word") and enumerates the cascade scope (meanings, examples, group memberships, practice progress), which clearly separates it from the sibling delete_group or update_group tools.

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 concrete precondition — the version token must come from find_my_words or save_word — and names the failure mode (WORD_CHANGED) if it is stale. It stops short of stating when to prefer an alternative (e.g., removing a word from a group via update_group rather than deleting it), so it is clear context without explicit exclusions.

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.