Skip to main content
Glama

Read the text inside a file

read_file_text

Downloads a Blackboard file (PDF, DOCX, PPTX, XLSX, or text) and returns its extracted text so you can summarize it or answer questions about the content.

Instructions

Downloads a PDF / DOCX / PPTX / XLSX / text file from Blackboard (same targets as download_file) and returns its extracted text so you can summarize or answer questions about it - class presentations, apuntes, guías de ejercicios, syllabus. The file is also kept locally.

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_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoDirect Blackboard file URL (bbcswebdav) from another tool's output.
urlsNo
destDirNoAbsolute directory to save into. Default /root/Downloads/Blackboard/<course code>/
courseIdNo
fileNameNoFile name to save as when passing a single url.
maxCharsNoTruncate each file's text to this many characters. Default 20000.
contentIdNoA file item, or a folder/document (takes every attached file and embedded video/image inside it).
overwriteNoRe-download even if the file already exists locally. Default false.
contentIdsNoSeveral content ids from the same course.
markAsOpenedNoAlso tell Blackboard that the user opened this item (progress tracking -> 'Iniciado'). Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It does usefully reveal a side effect ('The file is also kept locally') and the return type (extracted text), but it omits truncation behavior, whether extraction can fail on scanned PDFs, authentication prerequisites, and the folder-recursion behavior implied by contentId. These are meaningful gaps for a 10-parameter tool with a filesystem write.

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 sentence, front-loaded with the action and formats, then the return value and side effect. It is slightly overstuffed with Spanish-language examples (apuntes, guías de ejercicios), but every clause adds information and nothing is padding.

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

Completeness3/5

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

For a tool with 10 parameters, no annotations, no output schema, and a filesystem side effect, the description covers the what and the why but not the how. It says nothing about truncation defaults, the multi-target parameters, or failure modes, leaving an agent to read the schema to call it correctly.

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 80%, so the schema already documents url, urls, destDir, fileName, maxChars, contentId, overwrite, and markAsOpened. The description adds no parameter-level meaning beyond naming the accepted file formats; it never explains how to choose between url/urls and contentId/contentIds, or that maxChars truncates the returned text. Baseline 3 is 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 names a specific verb (downloads) and resource (Blackboard file) and lists the supported formats (PDF/DOCX/PPTX/XLSX/text). It distinguishes itself from the sibling download_file by stating it 'returns its extracted text,' so an agent can tell the two apart, though the differentiation is folded into a subordinate clause rather than stated upfront.

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?

It gives concrete use cases (summarize, answer questions about presentations, notes, exercise guides, syllabus), which implies when to reach for this tool. However, it never states when NOT to use it — for example, when download_file is preferable because you only need the binary, or when read_content is the better fit. Usage is implied but not routed.

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