Skip to main content
Glama

Look at file pages

get_file_page
Read-onlyIdempotent

Renders selected pages of a Canvas course file as images, up to four per call, so you can inspect slides, equations, tables, diagrams, handwriting, and scans.

Instructions

Renders pages of a course file as images (up to 4 per call) so you can see slides, equations, tables, diagrams, handwriting and scans. PDFs always; PowerPoint/Word when LibreOffice is installed (otherwise the pictures on those slides); image files as themselves. Includes a link to the file in Canvas.

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

Input Schema

NameRequiredDescriptionDefault
pagesNoe.g. "1-4", "2,5", 3
fileIdYes
courseIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds genuinely new behavior: a hard cap of 4 pages per call, a dependency-driven degradation path for Office formats (falling back to embedded pictures), and the fact that a Canvas file link is returned alongside the images.

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?

Three tight sentences, front-loaded with the core action and the per-call limit before the format caveats. The mid-sentence parenthetical about LibreOffice is dense but each clause carries actionable information; nothing is padding.

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 must convey what comes back, and it does: rendered page images plus a Canvas link to the source file. Combined with the format-support caveats and page cap, an agent has enough to call it correctly; only the semantics of courseId/fileId are left entirely to name inference.

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 33% — only 'pages' is documented (with its '1-4', '2,5', 3 syntax), while courseId and fileId are bare. The description contributes the otherwise-undocumented four-page ceiling, which meaningfully constrains the 'pages' argument, but says nothing about identifying the file or course, leaving the baseline 3 appropriate.

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 opens with a specific verb and resource: 'Renders pages of a course file as images', plus a scope limit ('up to 4 per call') and an enumeration of what becomes visible (slides, equations, tables, diagrams, handwriting, scans). That modality framing implicitly separates it from text-oriented siblings like read_content, though no sibling is named outright.

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 implied rather than stated: an agent can infer this is the tool for visually rich content, and 'PDFs always; PowerPoint/Word when LibreOffice is installed' hints at reliability differences. But there is no explicit 'use this instead of X when...' guidance and no stated exclusions or prerequisites for choosing it over a text reader.

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