Skip to main content
Glama

Polidict

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.

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

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.