Skip to main content
Glama

gradescope_select_pages

Idempotent

Assign PDF submission pages to specific questions for Gradescope grading, using a dry-run plan first and confirming before saving.

Instructions

Assign pages of a PDF submission to questions (the "Select pages" step Gradescope needs before grading, e.g. after gradescope_submit returns needsPageSelection). Use when the user asks to select or assign pages. Decide the pages from the PDF the user uploaded (read it), never by guessing, and show the plan: always call with dryRun: true first, then with confirm: true after the user agrees. Questions you leave out keep their pages unless replace is true.

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": {
      "courseId": "<courseId>",
      "assignmentId": "<assignmentId>",
      "pages": "<pages>"
    },
    "name": "gradescope_select_pages"
  }
}

Input Schema

NameRequiredDescriptionDefault
pagesYesQuestion number (like "1.2"), id or unique title part → page numbers, e.g. {"1.1": [1, 2], "1.2": "3-4", "2.1": 5}. [] clears a question
dryRunNoValidate and return the plan without saving
accountNoSaved account to use (see minerva_list_accounts). Only needed when several accounts are saved and the user has not chosen one yet.
confirmNoMust be true to actually send. Only set it after showing the user the dryRun plan and getting their explicit yes.
replaceNoClear the pages of questions not listed (default false: they keep theirs)
courseIdYesGradescope course number like "1234567" (from gradescope_list_courses), or a module code like "COMP3620"
assignmentIdYesAssignment id (from gradescope_list_assignments) or a unique part of its title, e.g. "Perceptron"
submissionIdNoOmit to use your active submission

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare a non-read-only, idempotent write, and the description adds real behavior beyond them: an enforced dryRun→confirm gate, the sourcing rule (derive pages from the actual PDF), and the fact that unlisted questions keep their pages unless replace is true. It does not describe what the dryRun plan looks like on return, which is the main remaining gap for an 8-parameter mutation.

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?

Four sentences, front-loaded with what the tool does, then the trigger, then the safety protocol, then the edge case. Nothing is padding; even the parenthetical examples carry operational meaning.

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 nested 8-parameter mutation with no output schema, the definition covers trigger, sourcing, confirmation protocol, and the omitted-question behavior. Only the return shape of a dryRun plan is left implicit, which is minor given the 100% schema coverage.

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 baseline is 3, and the description goes beyond it by explaining the intended ordering of dryRun and confirm (a sequencing constraint the schema cannot express) and by reinforcing the replace semantics for omitted questions. The pages-mapping format example itself lives in the schema, so no extra credit there.

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?

The description names a concrete verb and resource — assigning pages of a PDF submission to questions — and anchors it to the Gradescope 'Select pages' step and the needsPageSelection state returned by gradescope_submit. An agent can distinguish this from read-only siblings like gradescope_get_page_selection 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?

It gives an explicit trigger ('Use when the user asks to select or assign pages') plus a mandatory two-step protocol: dryRun first, confirm only after the user agrees. It also warns against guessing pages and tells the agent to read the uploaded PDF. It stops short of naming a when-not condition or an alternative sibling, which keeps it at 4 rather than 5.

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