Skip to main content
Glama

ilias_read_file

Read-only

Read text from ILIAS course files by ref_id or download URL, including selected pages, keyword snippets, and continuation for long pages.

Instructions

Text of a course file (PDF, PPTX, DOCX, text, ZIP) by ref_id or download URL.

Without pages, returns only pages not read before; an unchanged, fully read file returns status 'already_read'. pages='2-4,7' re-opens specific pages. query='deadline|due|submit' returns keyword snippets instead of full text (not counted as read). force=true returns everything again. A page longer than max_chars is cut: the answer then has continue_with (pages, offset, version); pass all three to the next call. If the file changed in between, the new version is returned from the start of the page.

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": {
      "target": "<target>"
    },
    "name": "ilias_read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNo
pagesNo
queryNo
offsetNo
targetYes
versionNo
max_charsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.0
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "title": "Offset",
      +  "type": "integer"
      +}
    • addedInput schema / properties / version
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Version"
      +}
  2. First observedv0.2.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare read-only, open-world, non-destructive; the description adds substantial hidden behavior: read-state tracking that persists across calls ('already_read'), that query snippets are exempt from that tracking, the `continue_with` truncation contract (pages, offset, version), and how a changed version restarts from the page start. These are exactly the stateful and pagination traits annotations cannot express.

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?

Front-loaded with the core behavior, then layering modes in a logical order; no filler sentences. It is dense and somewhat fragmentary (short clauses instead of full sentences), which slightly reduces readability but wastes no space.

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

Completeness5/5

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

For a seven-parameter, stateful reader this covers what an agent needs: default behavior, each override, the truncation/continuation protocol, and the version-change edge case. An output schema exists, yet the description still supplies the status semantics ('already_read') and continuation fields that matter for the next call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% with seven bare-named parameters, so the description carries the full burden and does so: `pages='2-4,7'` shows the syntax, `query` is shown with a real keyword pattern and its side effect, `force`/`max_chars`/`offset`/`version` are each tied to a concrete behavior, and `target` is defined as ref_id or download URL. Only `max_chars` lacks a numeric example, a minor gap.

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?

Names the resource precisely (text of a course file) and enumerates supported formats (PDF, PPTX, DOCX, text, ZIP), plus the two addressing modes (ref_id or download URL). It is slightly elliptical — a verb such as 'extract' is implied rather than stated — and it doesn't explicitly contrast with ilias_download_file or ilias_page_text, but an agent can still tell this returns text rather than a saved file.

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?

Gives explicit mode-selection guidance: default is incremental (only unread pages), `pages` re-opens specific pages, `query` switches to snippets and is not counted as read, `force` re-reads everything. What's missing is guidance on when to call this at all versus sibling tools like ilias_page_text or ilias_download_file; no alternatives are named.

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