Skip to main content
Glama

Check a quiz answer

check_answer
Read-onlyIdempotent

Grades one answer from a start_quiz round. Returns whether it is correct, the correct answer, the explanation, its sources, the running score and the quiz_id for the next answer; after the last question it also returns the final score. The round's progress and score are held in the quiz_id, which changes with every answer, and grading stores nothing. A quiz_id grades each question once.

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": {
      "quiz_id": "<quiz_id>",
      "question_id": "<question_id>",
      "answer": "<answer>"
    },
    "name": "check_answer"
  }
}

Input Schema

NameRequiredDescriptionDefault
answerYesmultiple_choice and fill_blank: the index of the option, from 0. true_false: true or false. match_pairs: an array with, for each item of lefts in order, the index of its match in rights.
quiz_idYesFor the first answer of a round, the quiz_id from start_quiz. For each later answer, the quiz_id from the latest check_answer result. It holds the round's progress and score.
languageNoLanguage of the questions, options and explanations. Default en.
question_idYesThe id of the question in the round.

Output Schema

NameRequiredDescriptionDefault
finalNo
scoreNo
totalNo
streakNo
correctNo
quiz_idNoThe quiz_id for the next answer of this round
sourcesNo
answeredNo
finishedNo
play_urlYes
source_urlNo
attributionYes
explanationNo
correct_matchNo
correct_valueNo
match_resultsNo
correct_optionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / quiz_id / description
      Previous value: -"The quiz_id from start_quiz."New value: +"For the first answer of a round, the quiz_id from start_quiz. For each later answer, the quiz_id from the latest check_answer result. It holds the round's progress and score."
    • changedInput schema / properties / quiz_id / maxLength
      Previous value: -48New value: +64
    • addedOutput schema / properties / quiz_id
      Added value: +{
      +  "description": "The quiz_id for the next answer of this round",
      +  "type": "string"
      +}
  2. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered; the description adds the genuinely non-obvious fact that state lives entirely in the rotating quiz_id and that grading persists nothing. "A quiz_id grades each question once" also explains the idempotency guarantee in operational terms. It loses a point only because much of the sentence is a return-value enumeration that the output schema already supplies.

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?

Two sentences, front-loaded with the purpose before the state model, and no filler. The long comma-separated list of returned fields is the one stretch that costs readability and is largely redundant given the output schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers the stateful loop and error-adjacent constraint (one grade per question per quiz_id) that an agent most needs. However, with an output schema present, the enumerated return fields are dead weight rather than added completeness, so the definition is adequate rather than fully optimized for its complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so answer format, quiz_id sourcing and language default are fully documented structurally; the description adds only the chaining rule that quiz_id changes with every answer, which duplicates the schema's own wording. Baseline 3 applies when the schema carries the parameter burden.

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?

"Grades one answer from a start_quiz round" gives a specific verb (grades), a specific unit (one answer), and names the sibling tool that begins the flow, so it is distinguishable from start_quiz without reading either schema.

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?

The description establishes the operating context clearly: it is the per-answer step of a round started by start_quiz, and the quiz_id must be carried forward from the previous result. It does not spell out when-not to use it or name alternatives beyond the start_quiz entry point, but the sequencing is unambiguous.

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