Skip to main content
Glama

cms_read_file

Read-only

Extracts text from course files (PDF, PPTX, DOCX, plain text) for reading, summarizing, or quizzing. Handles long files in parts by passing next_start as start.

Instructions

Extract the text of a course file (PDF, PPTX, DOCX or plain text) so it can be read, summarised or quizzed on. Get content_id from cms_course_content.

Long files come back in parts: pass the returned next_start as start to continue.

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": {
      "course": "<course>",
      "content_id": "<content_id>"
    },
    "name": "cms_read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
startNo
courseYes
max_charsNo
season_idNo
content_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds genuinely new behavior: long files are returned in parts and the returned `next_start` must be passed back as `start` to continue. It does not mention authentication or rate limits, but for a read-only extraction tool this is a solid addition.

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, each earning its place: what it does, where to get the required ID, and how to paginate. The core purpose is front-loaded with no filler.

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 usefully discloses the return mechanic (parts plus `next_start`). Annotations cover the read-only profile. The remaining gap is the undocumented `course`, `season_id`, and `max_chars` parameters, which matters for a 5-parameter tool.

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%, so the description must carry the burden. It explains `content_id` (obtained from cms_course_content) and `start` (the continuation token from a prior call), but leaves `course`, `season_id`, and `max_chars` entirely uninterpreted beyond their names.

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 specific verb and resource ('Extract the text of a course file') and enumerates the supported formats (PDF, PPTX, DOCX, plain text) plus the downstream uses. This clearly separates it from siblings like cms_download or cms_course_content, which list or fetch metadata rather than extract text.

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

Usage Guidelines4/5

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

It gives an explicit prerequisite and routing hint: 'Get `content_id` from cms_course_content.' It also tells the agent how to continue when a file is long. There is no explicit when-not guidance or statement about which sibling to use for non-text needs, so it falls short of a 5.

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