Skip to main content
Glama

Lexpad – Vocabulary Notebook & Flashcards

Record a practice answer

record_answer
Idempotent

Records whether the user answered a practice question about a word correctly. It counts like a review in the app: it moves the word's box, the day's numbers and the streak, and the result gives the word's next review date. A right answer to a word that is not due yet may be saved as practice, which keeps its next review (scheduleChanged false). Each answer carries its own client_id, so the same answer sent twice counts once. The word is named by its id or, without one, by the word itself as saved; a word found in no notebook or in more than one is refused with what to send instead.

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": {
      "word_id": "<word_id>",
      "correct": "<correct>",
      "client_id": "<client_id>"
    },
    "name": "record_answer"
  }
}

Input Schema

NameRequiredDescriptionDefault
nextNoWhether the result should also carry the next word due today in the same notebook, with its meanings.
heardNoWhat the user said, as you heard or transcribed it. It is kept with the answer and changes nothing about how it counts.
correctYesWhether the user's answer was right.
word_idYesThe id of the word the user was asked about, or, without an id, the word itself as saved in the notebook.
client_idYesA unique id you make for this one answer, so sending it twice counts once.
notebook_idNoWith the word itself instead of an id: a notebook id from list_notebooks, to look only there. Omit to look in every notebook.

Output Schema

NameRequiredDescriptionDefault
boxNo
nextNo
leechNo
statusYes
streakYes
dueDateNo
masteredNo
scheduleChangedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / heard
      Added value: +{
      +  "description": "What the user said, as you heard or transcribed it. It is kept with the answer and changes nothing about how it counts.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • addedInput schema / properties / next
      Added value: +{
      +  "description": "Whether the result should also carry the next word due today in the same notebook, with its meanings.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / next
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "left": {
      +      "type": "integer"
      +    },
      +    "reviewsPerDayReached": {
      +      "type": "boolean"
      +    },
      +    "word": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "headword": {
      +          "type": "string"
      +        },
      +        "id": {
      +          "type": "string"
      +        },
      +        "meanings": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": [
      +            "null",
      +            "array"
      +          ]
      +        },
      +        "notebookId": {
      +          "type": "string"
      +        },
      +        "pos": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "notebookId",
      +        "headword",
      +        "meanings"
      +      ],
      +      "type": [
      +        "null",
      +        "object"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "left"
      +  ],
      +  "type": [
      +    "null",
      +    "object"
      +  ]
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / notebook_id
      Added value: +{
      +  "description": "With the word itself instead of an id: a notebook id from list_notebooks, to look only there. Omit to look in every notebook.",
      +  "maxLength": 26,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / word_id / description
      Previous value: -"The id of the word the user was asked about."New value: +"The id of the word the user was asked about, or, without an id, the word itself as saved in the notebook."
    • changedInput schema / properties / word_id / maxLength
      Previous value: -26New value: +200
  3. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the annotations it discloses real side effects: the word's box moves, the day's numbers and streak change, and the result yields a next review date. It also explains the practice case (scheduleChanged false), the client_id dedupe behavior with its own concrete consequence, and the refusal path when a word matches no notebook or several.

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?

The side effects and idempotency come first, followed by fallback and error behavior, so it is front-loaded. A few sentences are dense and slightly convoluted (the practice/scheduleChanged clause), but nothing is 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?

For a 6-param mutation with an output schema and full annotation coverage, the description covers side effects, idempotency, and the ambiguous-word error path without needing to restate return fields. The main remaining hole is that it does not route the agent between this and the batch record_answers sibling.

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 is 3; the description adds genuine meaning on top by spelling out the word_id-or-word-name fallback, that notebook_id only matters when the word is given by name and defaults to all notebooks, and that heard is stored but does not affect counting.

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?

"Records whether the user answered a practice question about a word correctly" gives a specific verb (records) and resource (a practice answer for a word). It is clearly a single-answer write, but it never distinguishes itself from the sibling record_answers, which an agent could easily pick instead.

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 implied rather than stated: the description explains that the answer counts as a review and that a right answer on a not-yet-due word is saved as practice, which hints at when this applies. It never says when to prefer this over record_answers (batch) or how to look up the word/notebook first.

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