Skip to main content
Glama

read_file

Retrieve the contents of a specific Canvas course file by file ID or file name, using course ID or course name to locate it.

Instructions

Read the content of a specific Canvas file

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdNoThe Canvas file ID (optional if fileName is provided)
courseIdNoThe Canvas course ID (numeric)
fileNameNoThe file name to search for (optional if fileId is provided)
courseNameNoThe course name (e.g., "Art 113N", "CMPEN 431"). If provided, courseId is not required.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description bears the full behavioral burden and says nothing about permissions, whether access is scoped to enrolled courses, or what "content" means (raw text, extracted text, binary, or a download URL). For a file-reading tool with no output schema, the return shape is the single most important unknown and is left entirely unaddressed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler, so it is efficient. But the brevity here is under-specification rather than economy — the one clause present is doing less work than the tool requires.

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?

Four all-optional parameters with no annotations and no output schema mean the agent gets no guidance on what happens if neither fileId nor fileName is provided, or on what comes back. Given this complexity, one sentence is not enough to call the tool safely.

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 every parameter already carries its own explanation, including the fileId/fileName optionality and the courseId/courseName fallback. The description adds no additional parameter meaning beyond the schema, which is the baseline expectation at full coverage.

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?

"Read the content of a specific Canvas file" names a concrete verb (read) and resource (file) with a scope qualifier (specific), so the operation is immediately understandable. It does not, however, distinguish this tool from siblings like read_file_by_id, find_files, or download_submission_file, even though the schema shows it accepts either an ID or a name lookup.

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

Usage Guidelines2/5

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

There is no statement of when to use this versus read_file_by_id, find_files, or download_submission_file, nor any prerequisite or exclusion. The only usage signal is implicit in the word "specific," which actually conflicts with the schema's name-search capability.

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