Skip to main content
Glama

get_submission_images

Extract images from a student's Canvas submission for grading. Render picture-containing PDF pages, return embedded Word and uploaded images, and skip duplicates.

Instructions

Screenshots, photos and scanned pages from a student's submitted files, as images.

PDF pages that contain pictures are rendered whole (so screenshots keep their captions); images embedded in Word files and uploaded image files are returned directly. Duplicates are skipped.

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": {
      "course_id": "<course_id>",
      "assignment_id": "<assignment_id>",
      "user_id": "<user_id>"
    },
    "name": "get_submission_images"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNo'high' renders at twice the resolution, for small text or blurry photosnormal
attemptNo
user_idYes
course_idYes
max_imagesNo
assignment_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose genuinely useful processing semantics: PDF pages containing pictures are rendered whole to preserve captions, embedded Word images and uploaded images pass through directly, and duplicates are skipped. However, it is silent on the behaviors an agent most needs — what happens when a submission has more images than max_images (truncation? ordering?), and whether this is a pure read with no side effects.

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?

Three short sentences, front-loaded with the core deliverable, followed by the rendering rules and the dedup note. Nearly every clause earns its place; the trailing 'as images' is mildly redundant with the leading noun list but costs little.

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?

With no output schema and no annotations, the description does a decent job of explaining the shape of the return (rendered page images vs. direct file images), which is the highest-value gap. But for a six-parameter tool with 17% schema coverage and an unmentioned max_images cap, the definition leaves an agent guessing about identifiers, attempt selection, and truncation behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 17% — just the `detail` enum is documented in the schema — yet the description mentions no parameter at all. It never explains course_id/assignment_id/user_id, what `attempt` selects, or that max_images defaults to 12 and caps at 30, so the reader cannot tell whether max_images silently truncates the set. It only loosely implies the source identifiers via 'a student's submitted files', which is insufficient compensation for the coverage gap.

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?

The description names a concrete resource — screenshots, photos and scanned pages extracted from a student's submitted files — and implicitly states the retrieval verb via the name. It is clearly distinguishable from siblings like get_submission or list_submissions, which return text/metadata rather than rendered images. It stops short of an explicit 'retrieves X for Y' framing, but the resource and scope are unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to reach for this tool versus get_submission, list_submissions, or open_in_speedgrader, nor any prerequisite or permission context. The reader must infer from the name alone that this is the image-oriented path. The only quasi-guidance is the duplicate-skipping note, which is behavior rather than usage selection.

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