Skip to main content
Glama

canvas_download_file

Download Canvas LMS files by file ID to access text-based content or get a base64 preview of binary files.

Instructions

Download the content of a file. Works with text files, CSVs, and other text-based formats. Returns base64 preview for binary files.

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": {
      "file_id": "<file_id>"
    },
    "name": "canvas_download_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYesThe file ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does add genuinely useful return-behavior detail (text content for text formats, base64 preview for binary), which is more than the structured fields provide. However, it omits size limits, truncation behavior, and what happens for unsupported or large binary files, which matters for a download tool.

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 short sentences with the core action front-loaded and no wasted wording. The format-handling caveat follows the main statement rather than burying it.

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 a one-parameter read tool with no output schema, the description covers what the call does and roughly what comes back, which is the key missing piece. Adding truncation or size caveats would make it fully complete, but nothing essential blocks an agent from calling it.

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?

There is a single parameter, file_id, with 100% schema description coverage, so the schema already carries the semantics. The description adds no further meaning about the identifier or where to obtain it, making 3 the correct baseline rather than higher.

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 states a specific verb and resource ("Download the content of a file"), making the retrieval-of-bytes purpose clear against metadata-style siblings like canvas_get_file. It stops short of naming any sibling explicitly, so differentiation relies on inference from the name.

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?

Usage is only implied: "Works with text files, CSVs, and other text-based formats" tells the agent when the tool applies but offers no explicit when-not condition or named alternative such as canvas_extract_links_from_content or canvas_get_file. The agent must infer the boundary itself.

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