Skip to main content
Glama

canvas_prepare_file_upload

Read-onlyIdempotent

Preview a file from Downloads or TUE_UPLOAD_DIR for an assignment, then confirm upload to capture bytes and return a Canvas file ID for online submission.

Instructions

Preview a file from Downloads or TUE_UPLOAD_DIR for a particular assignment. Confirming uploads the captured bytes and returns a Canvas file ID. Use submit_assignment with online_upload and that file ID to turn it in.

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>",
      "filename": "<filename>"
    },
    "name": "canvas_prepare_file_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
courseIdYes
filenameYes
contentTypeNoapplication/octet-stream
assignmentIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations declare readOnlyHint=true and idempotentHint=true; the description's "confirming uploads the captured bytes" reads like a write, but given the prepare/confirm sibling pattern the mutation likely occurs in a separate confirm tool, so this is ambiguous rather than contradictory. Beyond annotations, the description usefully discloses the source directories (Downloads, TUE_UPLOAD_DIR) and that a Canvas file ID is returned, but says nothing about what the preview step itself shows or what happens when the file is missing.

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 action and followed by the next step, with no filler. "Captured bytes" is slightly jargon-ish but the structure is otherwise tight.

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?

The description compensates for the missing output schema by stating that a Canvas file ID is returned and how to consume it. However, for a 4-parameter tool with no schema descriptions it leaves courseId and contentType unexplained and does not describe the preview/confirmation interaction, so an agent still has gaps to fill.

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 0%, so the description must carry the parameter meaning and it only partly does: it implies filename is resolved against Downloads or TUE_UPLOAD_DIR (genuinely useful path context) and ties the call to a particular assignment. courseId and contentType, including the application/octet-stream default, are never mentioned, leaving half the parameters 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 concrete verb and resource: "Preview a file from Downloads or TUE_UPLOAD_DIR for a particular assignment," which tells the agent exactly what is read and from where. It also names the follow-up (submit_assignment) so the tool's role in the upload flow is clear, though it does not explicitly distinguish itself from the other canvas_prepare_* siblings.

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 clear usage context (preparing a file for a specific assignment) and an explicit next step: use submit_assignment with online_upload and the returned file ID. It lacks any when-not-to-use guidance or mention of alternative preparation paths, which keeps it short of a 5.

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