Skip to main content
Glama

gradescope_submit

Destructive

Upload code, PDF, or document files as a Gradescope assignment submission, replacing the active submission. Validate with a dry run first, then confirm to send.

Instructions

Upload files as your submission to a Gradescope assignment (code, PDF or document). This replaces your active submission and course staff can see it. Use when the user asks to submit an assignment on Gradescope, including one linked from Minerva. Always call with dryRun: true first, show the plan, and wait for the user to confirm.

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>",
      "files": "<files>"
    },
    "name": "gradescope_submit"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesAbsolute paths of the files to upload
unzipNoCode uploads only: unpack .zip files and upload their contents, as the website does (default true)
dryRunNoValidate and return the plan without uploading
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.
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"
leaderboardNameNoRequired when the assignment has a leaderboard

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 flag destructiveHint=true, idempotentHint=false and openWorldHint=true, but the description adds the concrete consequence the agent otherwise could not infer: the upload replaces the active submission and becomes visible to course staff. The confirm-gate requirement further contextualizes the destructive behavior. It does not address failure modes, deadline/late-penalty handling, or what the dryRun plan actually returns.

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, front-loaded with what the tool does and its side effect, then the trigger, then the mandatory workflow. No filler, no restatement of the title, and the most safety-critical instruction lands last where it is still prominent.

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 an 8-parameter, 100%-documented destructive tool with no output schema, the description covers purpose, trigger, impact and the confirm workflow. The remaining gap is return behavior: without an output schema, the agent is not told what the dryRun plan or the successful submission response contains.

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, but the description adds sequencing semantics the schema does not: dryRun must be called first with true and confirm must only be set after explicit user approval. That ordering constraint materially changes how the two safety parameters are used, going beyond their individual schema descriptions.

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 ("Upload files as your submission to a Gradescope assignment") and immediately narrows the accepted content types (code, PDF or document). It also disambiguates scope by noting it targets the user's own active submission rather than a group or draft, which separates it from read-side siblings like gradescope_get_submission.

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 a concrete trigger ("when the user asks to submit an assignment on Gradescope, including one linked from Minerva") and prescribes a mandatory two-step workflow: dryRun first, show the plan, wait for confirmation. It does not say when NOT to use it, e.g. how it differs from the sibling minerva_submit for non-Gradescope targets, so the routing against that alternative is left implicit.

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