Skip to main content
Glama

Lexpad – Vocabulary Notebook & Flashcards

Save a word

add_word

Saves one word or phrase the user asked to save to their notebook, with meanings in the notebook's meaning language and examples in its target language. It takes a whole card: several meanings, each with a gloss and examples, part of speech, level, pronunciation, collocations, expressions, related words, a topic and notes; everything but the headword is optional. If the notebook already has the word, it moves to the top and only new meanings are added. A word saved with a meaning uses one of the account's daily AI cards for assistants; when none are left, it is saved without one and the result says when they come back.

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": {
      "headword": "<headword>"
    },
    "name": "add_word"
  }
}

Input Schema

NameRequiredDescriptionDefault
posNoPart of speech, e.g. noun, verb, phrasal verb.
levelNoCEFR level.
topicNoThe topic the word is filed under, e.g. work, travel, emotions. Absent files it under general.
headwordYesThe word or phrase exactly as the user asked to save it.
meaningsNo
correctionNoThe natural, correctly spelled form, when the headword as the user gave it is misspelled or unidiomatic.
usage_noteNoOne note on register, grammar or common mistakes, in the meaning language.
expressionsNoCommon phrases or idioms built on the word, with translations.
notebook_idNoA notebook id from list_notebooks. Omit for the default notebook.
collocationsNo
hard_spellingNoWhether learners commonly misspell the word.
pronunciationNoIPA or a simple respelling.
related_wordsNoSynonyms, antonyms, derived forms or easily confused words, with translations.
spelling_noteNoWhat makes the spelling hard, in the meaning language.
target_languageNoThe language code of the headword and examples, e.g. en. When given, it must be the notebook's target language.
meaning_languageNoThe language code the meanings are written in, e.g. fa. When given, it must be the notebook's meaning language.
confirmed_languagesNoWhether this call carries the user's answer to which language the meanings should be in.

Output Schema

NameRequiredDescriptionDefault
planNo
wordNo
needsNo
existingYes
notebookNo
questionNo
suggestionsNo
meaningsAddedYes
notebook_createdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / confirmed_languages
      Added value: +{
      +  "description": "Whether this call carries the user's answer to which language the meanings should be in.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / needs
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / notebook
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "id": {
      +      "type": "string"
      +    },
      +    "meaning_language": {
      +      "type": "string"
      +    },
      +    "target_language": {
      +      "type": "string"
      +    },
      +    "title": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "title",
      +    "target_language",
      +    "meaning_language"
      +  ],
      +  "type": [
      +    "null",
      +    "object"
      +  ]
      +}
    • addedOutput schema / properties / notebook_created
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / question
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / suggestions
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • changedOutput schema / properties / word / type
      Previous value: -"object"New value: +[
      +  "null",
      +  "object"
      +]
    • changedOutput schema / required
      Previous value: -[
      -  "word",
      -  "existing",
      -  "meaningsAdded"
      -]New value: +[
      +  "existing",
      +  "meaningsAdded"
      +]
  2. Changed1 schema field changed
    • addedOutput schema / properties / plan
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "aiCardsLeftToday": {
      +      "type": "integer"
      +    },
      +    "aiCardsPerDay": {
      +      "type": "integer"
      +    },
      +    "limitReached": {
      +      "type": "boolean"
      +    },
      +    "meaningSaved": {
      +      "type": [
      +        "null",
      +        "boolean"
      +      ]
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "plan": {
      +      "type": "string"
      +    },
      +    "plansUrl": {
      +      "type": "string"
      +    },
      +    "resetsAt": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "plan",
      +    "aiCardsLeftToday",
      +    "aiCardsPerDay"
      +  ],
      +  "type": [
      +    "null",
      +    "object"
      +  ]
      +}
  3. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations, it discloses genuine behavioral traits: upsert semantics ('moves to the top and only new meanings are added'), the quota cost of a saved meaning ('one of the account's daily AI cards'), and graceful degradation when cards run out. The non-idempotent annotation is consistent with this reordering/consumption behavior rather than contradicted by it.

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?

Three front-loaded sentences that each carry information: what gets saved, the card's composition and optionality, the duplicate behavior, and the quota consequence. Dense but without filler, though the middle sentence is long enough to slow scanning.

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 17-parameter mutation tool with annotations and an output schema, the description covers the card structure, optionality, duplicate handling, and quota degradation. Details like notebook_id defaulting and language-code validation are already handled by the schema, so nothing critical 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 already 88%, so the baseline is 3, but the description adds cross-field meaning the schema cannot express: meanings go in the notebook's meaning language while examples use its target language, and only the headword is required. It does not explain every field, but it frames how the card hangs together.

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 opens with a specific verb and resource ('Saves one word or phrase ... to their notebook') and immediately scopes it as a whole card rather than a single sense, which separates it from siblings like add_meaning and update_word.

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

Usage Guidelines3/5

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

Usage is only implied through the phrase 'the user asked to save,' and the description never names an alternative or states when to use add_meaning or update_word instead. The notebook-exists behavior is explained, but routing guidance between sibling tools is absent.

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