Skip to main content
Glama

Read file or URL

read_file
Read-only

Read text with line pagination, Excel ranges, images, PDF pages, DOCX outline/XML, or a URL to retrieve specific file content.

Instructions

Read text with line pagination, Excel ranges, images, PDF pages, DOCX outline/XML, or a URL.

Input Schema

NameRequiredDescriptionDefault
pathYes
isUrlNo
rangeNo
sheetNo
lengthNo
offsetNo
optionsNo
deviceIdNo
deviceNameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds genuine behavioral context by disclosing the supported formats and that pagination is line-based, but it omits size limits, error behavior, and any note on how the URL path (openWorldHint=false) is constrained.

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 that packs the verb, resource, and format coverage with zero filler. Every clause earns its place.

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?

Annotations cover the safety profile and there is no output schema, but for a 9-parameter tool with 0% schema description coverage the description is thin: it gives no guidance on pagination defaults, range/sheet syntax, or how the device parameters interact. Adequate but with clear gaps.

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 coverage is 0% across 9 parameters, so the description must carry the load. It implicitly maps to several params (range/sheet for Excel, offset/length for line pagination, isUrl for URL), which is useful, but it leaves deviceId, deviceName, and options entirely unexplained.

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 (file/URL) and enumerates the content types it handles (text, Excel, images, PDF, DOCX, URL), which is more than a restatement of the name. It does not, however, distinguish itself from sibling readers like fs_read_chunk, fs_read_many, or read_multiple_files, so an agent still has to guess which reader applies.

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

Usage Guidelines2/5

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

The description never says when to use this tool versus the many sibling readers (fs_read_chunk, fs_read_many, read_multiple_files) or when-not to. Usage is only implied by the format list. No prerequisites or selection conditions are given.

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

Deploy Server

Other Tools