Skip to main content
Glama

submit_quiz

Destructive

Submits answers to an Artemis course quiz using a two-phase preview-and-confirm flow; returns a preview first, then submits only after the user approves with a confirmation token.

Instructions

Submit a course quiz. Live quizzes use the live endpoint with submit=true. A quiz that has ended uses practice mode. A quiz that has not opened is refused. Two-phase: without confirmationToken this returns a preview and does not submit. Show the preview to the user and send the token only after they explicitly approve. Exam quizzes are refused.

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": {
      "exerciseId": "<exerciseId>",
      "answers": "<answers>"
    },
    "name": "submit_quiz"
  }
}

Input Schema

NameRequiredDescriptionDefault
answersYes
exerciseIdYes
confirmationTokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this as a non-idempotent, destructive, open-world write, so the safety floor is covered. The description adds meaningful behaviour beyond that: a two-phase flow where omitting confirmationToken yields a preview and performs no submission, plus an explicit instruction to show the preview and only send the token after user approval. It stops short of saying whether a submitted attempt is consumed or whether re-submission is possible, which matters for a destructive, non-idempotent tool.

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?

Front-loads the core action, then modes, then the confirmation flow; no filler. The two separate refusal sentences ('has not opened is refused' and 'Exam quizzes are refused') could be merged, and the flow ordering (refusals before the two-phase mechanics) is slightly out of execution order.

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?

No output schema exists, and the description is good enough to explain the preview return and the refusal cases, so the agent knows what to expect back. What it lacks for a destructive write tool is the consequence of success (attempt consumed / irreversibility) and the answers payload format, both of which an agent needs to call this correctly.

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?

With 0% schema description coverage the description must carry parameter meaning, and it fully explains confirmationToken's two-phase semantics and its approval prerequisite. However exerciseId is only implied by 'course quiz' and answers (a 50-item array) has no stated element shape — whether entries are answer ids, indices, or text is left entirely undocumented.

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?

States a specific verb and resource ('Submit a course quiz') and immediately scopes it against adjacent behaviours (live endpoint, practice mode, refused states). It never explicitly says how it differs from submit_file/submit_text, but the resource noun 'quiz' plus the refusal rules make the boundary clear enough without reading the schema.

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?

Explicit when-to-use routing: live quizzes go to the live endpoint with submit=true, ended quizzes use practice mode, unopened quizzes are refused, and exam quizzes are refused outright. Each condition names the decision, so an agent can pick the right path without inference.

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