Skip to main content
Glama

Answer question

answer_question

Submit a short-answer or multiple-choice response to a Google Classroom question post and turn it in; first retrieve the item to confirm its question type and choices.

Instructions

Submit your answer to a question post (short answer or multiple choice). This also turns it in. Use get_item first to see the question type and choices. NOTE: the request format for this write was derived from the Classroom web client's code and has not been verified against a live account; check the 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": {
      "item": "<item>",
      "answer": "<answer>"
    },
    "name": "answer_question"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemYesPost/assignment id, or its classroom.google.com link
typeNoDetected from the question when omitted
answerYesYour answer text, or the exact text of the chosen option
courseNoCourse id, link or name. Optional when `item` is a full Classroom link (the course is read from it)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false, destructiveHint=false, openWorldHint=true; the description adds the crucial unpublished side effect that submitting an answer also turns in the item, which annotations do not convey. It further discloses that the request format is derived from the web client and unverified, prompting the agent to check results. It does not say whether an answer can be changed or resubmitted afterwards.

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, each load-bearing: the action plus its side effect comes first, the precondition second, the reliability caveat last. No repetition of schema content and no filler.

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 write tool with no output schema, it covers the main things an agent needs: what it writes, the irreversible turn-in side effect, the prerequisite lookup, and a caveat about unverified request format. Remaining gaps are whether an existing submission can be re-answered and what the response returns.

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 item, type, answer and course are already documented, including that answer takes 'the exact text of the chosen option'. The description only implies how to obtain type/answer values via get_item, which is marginal added meaning. Baseline 3 is appropriate.

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?

States a specific verb and resource ('Submit your answer to a question post') plus the accepted answer shapes (short answer / multiple choice). It also separates itself from the turn_in sibling by disclosing that this call 'also turns it in', so an agent can distinguish the two without opening 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?

Gives an explicit precondition and names the alternative sibling: 'Use get_item first to see the question type and choices.' That is concrete routing guidance for the common failure mode of submitting the wrong answer form. It stops short of saying when to use turn_in instead, so no explicit exclusion is stated.

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