Skip to main content
Glama

check_quiz_answer

Check if a student's quiz answer is correct, returning the correct answer and explanation. Use after retrieving quiz content.

Instructions

Check whether a student's answer to a quiz question is correct.

Returns: correct (bool), the right answer with its text, and an explanation. Call get_quiz_content first to see the questions and choices, then use this tool to validate the student's response. question_number and answer_number are 1-based.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
module_idYes
answer_numberYes
question_numberYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations provided, so description carries full burden. It describes the return values and that question/answer numbers are 1-based, but does not explicitly state whether the operation is read-only or has side effects. For a check operation, this is a minor gap.

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?

Three sentences: purpose+return, usage guideline, and indexing note. No unnecessary words, front-loaded with key information.

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?

With output schema existing, return values are covered. Description adds prerequisite and indexing. However, it lacks error handling info (e.g., invalid numbers) and does not mention any limitations or edge cases. Still, for a simple tool it is largely adequate.

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 coverage is 0%, so description must compensate. It clarifies that question_number and answer_number are 1-based, but does not describe module_id beyond its presence. Additional detail on module_id or domain of numbers would improve usability.

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?

Clearly states the tool checks whether a student's answer is correct, specifying the return values (correct bool, right answer, explanation). Distinguishes from sibling tools like get_quiz_content which retrieves questions.

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

Usage Guidelines5/5

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

Explicitly advises to call get_quiz_content first, then use this tool to validate the student's response, providing a clear prerequisite and usage order.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dataflowr/dataflowr-tools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server