Skip to main content
Glama

read_file_by_id

Retrieve a Canvas file directly by its file ID from a Canvas URL to access course materials, attachments, or resources for analysis and review.

Instructions

Read a Canvas file directly using its file ID (e.g., from a Canvas URL like /files/176870249)

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": {
      "fileId": "<fileId>"
    },
    "name": "read_file_by_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdYesThe Canvas file ID (e.g., "176870249" from the URL)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.1/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 disclosure burden, and it says nothing about permissions, whether file content or metadata is returned, handling of non-text files, or size limits. For a read tool with zero annotation coverage, this leaves the agent guessing about the most consequential behavior.

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?

One short, front-loaded sentence with a parenthetical example that earns its place by showing ID provenance. Nothing is wasted, though it is thin rather than tightly structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description should indicate what a successful read yields (raw content, a link, a file object), and it does not. Given no annotations and no return value documentation, an agent cannot predict the result shape before calling.

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% and the single parameter is already documented, so the schema does the heavy lifting. The description adds a small amount by showing the URL form the ID is extracted from, matching the baseline rather than exceeding it.

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 ("Read a Canvas file") and restricts it to lookup by file ID, with a concrete URL example. It does not differentiate from siblings such as read_file or find_files, so the agent cannot tell from the text which entry point applies.

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 word "directly" and the URL example imply this is the shortcut when you already have a numeric file ID, which is mild usage guidance. There is no explicit when-to-use/when-not-to-use statement and no mention of read_file as the alternative path.

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