Skip to main content
Glama

cds_read_material

Extracts text from PDF, Markdown, or TXT study materials in the study folder; for long PDFs, returns next_page so you can continue reading in page ranges.

Instructions

Extrai o texto de um material (PDF, .md, .txt) da pasta de estudos.

path é o caminho como aparece em cds_list_materials. PDFs longos voltam em partes: se next_page vier preenchido, chame de novo com start_page=next_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": {
      "path": "<path>"
    },
    "name": "cds_read_material"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
end_pageNo
start_pageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the non-obvious pagination behavior (long PDFs return in parts with a next_page marker), which is genuinely useful. It is silent on failure modes — unsupported extensions, invalid paths, size/time limits, or whether results are cached.

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 short sentences, front-loaded with purpose, then path provenance, then pagination — every sentence carries information. Minor inefficiency in describing `next_page`, which is a return value rather than a parameter, without saying where it is returned.

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 notes that text comes back in parts and surfaces the next_page continuation field, which is the key thing an agent needs. Missing only edge-case behavior (unsupported formats, error responses) and the meaning of end_page.

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 define all three parameters; it explains `path` (taken from cds_list_materials) and ties start_page to the returned next_page. `end_page` is never explained, leaving one of three parameters semantically undocumented in both schema and description.

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?

Specific verb+resource: extracts text from a study-folder material and names the supported formats (PDF, .md, .txt). It also anchors the resource to the study folder, which distinguishes it from generic content/URL tools. It stops short of naming which sibling to prefer when the material is not in the study folder.

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 concrete operational guidance: get `path` from cds_list_materials and, on a long PDF, re-call with start_page=next_page when next_page is returned. That is an explicit when/how rule, but there is no exclusion guidance versus siblings such as cds_get_content or cds_parse_url.

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