Skip to main content
Glama

files_read

Read-only

Read a text file from Nextcloud by path; large files return truncated content with a next offset for continued reading.

Instructions

Read a text file from Nextcloud; large files come back truncated with a next offset.

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": "files_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath inside the user's files, e.g. /Docs/notes.md
offsetNoByte offset for a continued read

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavior: large files are truncated and return a next offset for continuation, which an agent needs to know to avoid treating a partial read as complete. It stops short of covering encoding or non-text/binary handling.

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?

A single front-loaded sentence with two clauses, both of which carry information: the resource and the truncation/offset behavior. 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?

For a two-parameter read tool with full schema coverage and no output schema, the description covers what is returned (text content) and the key edge case (truncation with continuation). Missing only minor details like error behavior on a nonexistent path or binary-file handling.

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 100%, so both path and offset are already documented in the schema. The description reinforces the continuation use of offset ('truncated with a next offset'), though the wording 'next offset' does not exactly match the 'offset' parameter name, adding only marginal clarity.

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?

States a specific verb (read) and resource (a text file from Nextcloud), which is unambiguous. It does not distinguish itself from sibling files_read_as_markdown or note the binary/download alternatives, so it falls short of a 5.

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 only implied by 'Read a text file' – the agent can infer this is for text content rather than formatted markdown or downloads, but there is no explicit when-to-use or when-not guidance relative to files_read_as_markdown or files_download.

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