Skip to main content
Glama

Get Assignment

get_assignment
Read-only

Retrieve detailed information for a single Canvas assignment by ID, with options to include submissions, overrides, due dates, and score statistics.

Instructions

Get details for a single assignment by ID. Use include to request submission, overrides, all_dates, score_statistics, and other optional fields.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
includeNoExtra fields to include on the assignment (Canvas include[] param)
all_datesNoReturn all dates associated with this assignment
course_idYesThe Canvas course ID
assignment_idYesThe Canvas assignment ID
override_assignment_datesNoApply assignment overrides to due/unlock/lock dates
needs_grading_count_by_sectionNoBreak needs_grading_count down by section

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.18.11
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observedv1.18.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds minimal behavioral context beyond listing include options, but does not explain return shape, edge cases, or permission requirements. No contradiction with annotations.

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?

Two concise sentences with no filler. The primary purpose is front-loaded, and the include guidance is packed into a short second sentence that earns its place.

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 definition is adequate for a simple get tool, but it leaves ambiguity around the duplicate `all_dates` boolean vs the `include` enum value 'all_dates', and does not describe return values or error behavior despite there being no output schema. For a tool with 6 parameters and no output schema, this is a clear gap.

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 description coverage is 100%, so the schema already documents all parameters. The description's mention of `include` and its values adds little beyond the schema's own enum and descriptions; it only lightly reinforces that these fields are optional.

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 states a specific verb ('Get'), a resource ('assignment'), and an identifier ('by ID'), and clarifies it operates on a single assignment, distinguishing it from list_assignments and mutating assignment tools. It also hints at optional fields available via the include parameter.

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?

The usage context is implied: use this for a single assignment by ID, and use `include` to request optional fields. However, it does not explicitly mention alternatives like list_assignments or state when not to use this tool, leaving routing to inference.

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

Deploy Server

Other Tools