Skip to main content
Glama

Read a file or page

read_content
Read-onlyIdempotent

Extracts text from Canvas course files, pages, and module items, returning character totals and continuation instructions for long content so assistants can process course material in chunks.

Instructions

Reads the text of a course file (PDF, Word, PowerPoint with speaker notes, Excel, HTML, plain text), a Canvas page, or a module item. Long text is budgeted: the result gives totalChars and the exact call to continue (nextOffset). If the text is empty, thin or garbled, call get_file_page for the same file to look at the pages. Video and audio are not read; the link is returned.

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": {
      "courseId": "<courseId>"
    },
    "name": "read_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdNo
offsetNo
pageUrlNo
courseIdYes
maxCharsNo
moduleItemIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only cover the safety profile (readOnly, idempotent, non-destructive, openWorld); the description adds real behavior the annotations cannot express: long text is budgeted, the result reports totalChars and the exact continuation call via nextOffset, and non-text media yields a link instead of content. That is substantive disclosure about output shape and truncation behavior for a tool with no output schema.

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?

Four tight sentences, front-loaded with the purpose and formats, then budgeting, then the fallback and the media exclusion. Dense but nearly every clause carries information; the one soft spot is that the continuation mechanics and the fallback advice are compressed into the same block, slightly blurring what is primary behavior versus recovery advice.

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?

With no output schema, the description correctly explains the return contract (totalChars, nextOffset, link for media) and the fallback path, which is what an agent needs to act. The gap is the 6-parameter input surface: the required courseId and the exact resume semantics of offset are never addressed, so the agent must infer them from the schema after all.

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 0% across 6 parameters, so the description carries the burden. It implicitly maps the resource types to fileId/pageUrl/moduleItemId and signals budgeting (maxChars) and continuation (offset/nextOffset), but never names those parameters, never explains courseId (the sole required param), and leaves the offset-vs-nextOffset relationship implicit rather than spelling out how to resume.

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?

States a concrete verb (reads) plus the exact resource set: course files by format, Canvas pages, and module items. It also carves out what it does not handle (video/audio) and names the sibling get_file_page as a different tool, so an agent can separate it from read_link and get_file_page immediately.

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

Usage Guidelines5/5

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

Gives an explicit conditional route: if text is empty, thin or garbled, call get_file_page for the same file. It also states the negative case (video and audio are not read; the link is returned), which prevents a wrong call rather than leaving the agent to discover it by failure.

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