Skip to main content
Glama

quiz_brief

Read-onlyIdempotent

Builds a quiz brief of AI-written code lines a developer has not yet shown they understand, including the exact lines and rules for quizzing them. Use it to run graded comprehension checks.

Instructions

Build a quiz brief: the exact AI-written lines a person has not yet shown they understand, with rules for quizzing them.

When to use: the user asks to be quizzed, or agrees to a quiz after you finished a change (uncommitted=true for
that change, diff_base='main' for a whole branch, paths for specific code). Ask 2 to 6 questions one at a time,
grade each 0, 0.5 or 1, then call record_understanding with record_with.paths and the mean grade.

Returns {"who", "nothing_to_quiz", "line_count", "truncated", "brief_markdown" (the code and quiz rules),
"record_with": {"tool", "paths", "method", "score"}}. If nothing_to_quiz is true, tell the person there is
nothing new for them to check. Read-only: nothing is recorded until you call record_understanding.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "quiz_brief"
  }
}

Input Schema

NameRequiredDescriptionDefault
whoNoPerson being quizzed. Defaults to git user.email.
repoNoPath inside the git repository. Defaults to the server's working directory.
pathsNoFiles or folders to quiz on. Leave empty with uncommitted=true for the change just made.
diff_baseNoQuiz on everything changed since this git ref, e.g. 'main' for a branch.
max_linesNoCap on lines in the brief, to keep the quiz short.
uncommittedNoQuiz on uncommitted changes and new files (what you just wrote).

Output Schema

NameRequiredDescriptionDefault
whoYesPerson being quizzed.
truncatedYesTrue if the brief was cut at max_lines.
line_countYes
record_withYesHow to record the result once the quiz is done.
brief_markdownYesThe code to quiz on, and the rules for running the quiz.
nothing_to_quizYesTrue if they already understand all of it, or there is no AI-written code.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "RecordWith": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "method": {
      +          "title": "Method",
      +          "type": "string"
      +        },
      +        "paths": {
      +          "description": "Pass these unchanged to record_understanding.",
      +          "items": {
      +            "type": "string"
      +          },
      +          "title": "Paths",
      +          "type": "array"
      +        },
      +        "score": {
      +          "title": "Score",
      +          "type": "string"
      +        },
      +        "tool": {
      +          "title": "Tool",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "tool",
      +        "paths",
      +        "method",
      +        "score"
      +      ],
      +      "title": "RecordWith",
      +      "type": "object"
      +    }
      +  },
      +  "additionalProperties": true,
      +  "properties": {
      +    "brief_markdown": {
      +      "description": "The code to quiz on, and the rules for running the quiz.",
      +      "title": "Brief Markdown",
      +      "type": "string"
      +    },
      +    "line_count": {
      +      "title": "Line Count",
      +      "type": "integer"
      +    },
      +    "nothing_to_quiz": {
      +      "description": "True if they already understand all of it, or there is no AI-written code.",
      +      "title": "Nothing To Quiz",
      +      "type": "boolean"
      +    },
      +    "record_with": {
      +      "$ref": "#/$defs/RecordWith",
      +      "description": "How to record the result once the quiz is done."
      +    },
      +    "truncated": {
      +      "description": "True if the brief was cut at max_lines.",
      +      "title": "Truncated",
      +      "type": "boolean"
      +    },
      +    "who": {
      +      "description": "Person being quizzed.",
      +      "title": "Who",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "who",
      +    "nothing_to_quiz",
      +    "truncated",
      +    "line_count",
      +    "record_with",
      +    "brief_markdown"
      +  ],
      +  "title": "QuizBrief",
      +  "type": "object"
      +}
  2. First observedv0.3.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), yet the description adds real behavior: the 2-to-6 question protocol, the grading scale, the explicit boundary that "nothing is recorded until you call record_understanding," and what to tell the user when nothing_to_quiz is true. It also states the return shape, so an agent knows what it will hand back before calling.

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?

Purpose, "When to use," return shape, and the read-only caveat are each delivered in a compact block, with the identifying clause front-loaded. No sentence is filler, even though the paragraph is dense.

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

Completeness5/5

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

For a read-only, zero-required-parameter brief generator with an output schema, the description covers what the tool does, how to select inputs, what comes back, and what to do next. The nothing_to_quiz branch and the hand-off to record_understanding close the only gaps an agent could hit.

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 earns above that by explaining how parameters combine for real scenarios (uncommitted=true with empty paths versus diff_base='main' for a whole branch versus explicit paths). It adds selection guidance rather than restating field descriptions, though it says nothing about max_lines behavior beyond the schema's own cap explanation.

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?

"Build a quiz brief: the exact AI-written lines a person has not yet shown they understand, with rules for quizzing them" names a specific verb (build), a concrete artifact (quiz brief), and its content (uncovered lines + quiz rules). It is clearly separable from the sibling record_understanding, which the description explicitly identifies as the write step.

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?

"When to use" gives two concrete triggers (user asks to be quizzed, or agrees after a change) and maps each scenario to the right parameter combination: uncommitted=true for the just-made change, diff_base='main' for a branch, paths for specific code. It also states the required follow-up (grade 0/0.5/1, then call record_understanding with record_with.paths) so the agent knows the sequence rather than just the single call.

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