Skip to main content
Glama

Answer an exercise

answer_exercise
Idempotent

Check the learner's tapped answer to one exercise of a practice run and move that card's memory of the skill. Returns whether it was right, the right answer, the sentence to read and hear, and how the memory moved. The same exercise answered again returns the first result.

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": {
      "practice": "<practice>",
      "exercise": "<exercise>",
      "given": "<given>",
      "ms": "<ms>"
    },
    "name": "answer_exercise"
  }
}

Input Schema

NameRequiredDescriptionDefault
msYesMilliseconds from the exercise on screen to the answer.
givenYesThe picked option's text, or the chunks in the learner's order joined by spaces.
exerciseYesThe exercise's id.
practiceYesThe run's id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true). The description goes beyond them by spelling out the semantics of idempotency — a re-answer returns the first stored result rather than re-scoring — and by enumerating the return payload (correctness, right answer, sentence to read/hear, memory movement). It does not explain what 'memory moved' means concretely or what happens to invalid exercise ids.

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?

Two sentences, front-loaded with the core action and side effect, followed by the return contract and the idempotency caveat. No redundant restatement of the title.

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 mutating tool with no output schema, the description covers the return shape, the side effect, and the re-answer case. The vagueness around what 'how the memory moved' actually reports, and the absence of any error/failure behavior, keeps it from being fully complete.

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 per-parameter descriptions already define practice, exercise, given, and ms. The description only lightly reinforces meaning through phrasing like 'tapped answer' and 'exercise of a practice run,' adding little beyond the schema. Baseline applies.

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?

Uses a specific verb-plus-resource pair: 'Check the learner's tapped answer to one exercise of a practice run' plus the side effect 'move that card's memory of the skill.' This is clearly distinguishable from retrieval-oriented siblings like next_exercise or review_card, though it never explicitly names an alternative.

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?

Scope is implied ('one exercise of a practice run'), and the repeat-submission rule ('the same exercise answered again returns the first result') is useful guidance. There is no explicit statement of when not to call it or which sibling to use instead, e.g. next_exercise to fetch the following card.

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.