Skip to main content
Glama

canvas_submit_assignment

Submit a Canvas assignment as an online text entry or URL by specifying course ID, assignment ID, and submission type.

Instructions

Submit an assignment. Supports text entry and URL submission types.

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>",
      "submission_type": "<submission_type>"
    },
    "name": "canvas_submit_assignment"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoThe URL for online_url submissions
bodyNoThe text body for online_text_entry submissions (supports HTML)
course_idYesThe Canvas course ID
assignment_idYesThe assignment ID
submission_typeYesType of submission

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It says nothing about whether a submission is final, whether resubmission overwrites a prior attempt, what permissions or enrollment are required, or whether the submission is graded immediately — all material facts for a mutating operation.

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?

Two short sentences, front-loaded with the action and followed by the supported submission types. No redundant phrasing, though the second sentence is thin given what is left unsaid.

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 tool is simple (5 params, 3 required, fully documented schema, flat structure), so the description is close to sufficient for invocation. However, for a write operation with no annotations and no output schema, it omits what success returns and whether re-submission is permitted, leaving the agent guessing about consequences.

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 coverage is 100%, so every parameter (course_id, assignment_id, submission_type, body, url) is already documented in the schema, including the HTML note on body and the enum values. The description adds no syntax, format, or conditional requirements beyond that baseline.

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 specific verb and resource ('Submit an assignment') and narrows the scope to the two supported submission types, which implicitly distinguishes it from the file-assignment sibling without naming it. An agent can identify the operation and its supported modes directly from the description.

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

Usage Guidelines3/5

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

There is no explicit 'use this when' or 'do not use for file uploads — use canvas_submit_file_assignment instead' guidance. The stated supported types imply the boundary (text or URL, not file), but the agent must infer that the file-submission sibling exists for uploads.

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