Skip to main content
Glama
KubaZ2

Agentic Filesystem MCP

read

Access file contents for text and media files. Manage line limits and offsets to prevent token overflow when processing large documents.

Instructions

Reads the contents of a file. Supports text files and media files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesThe path to the file to read.
typeYesThe type of content to read. `text` for text files, `media` for media files.
limitNoThe maximum number of lines to read. Useful for preventing token overflow when reading very large text files. Ignored for media files. Defaults to `100` if not specified.
offsetNoThe number of lines to skip before starting to read. Used in combination with limit to paginate through large files. Ignored for media files. Defaults to `0` if not specified.
show_line_numbersNoWhether to prepend 1-indexed line numbers to each line (e.g., `1:`, `2:`). Setting this to `false` can save tokens when line numbers are strictly not needed. Ignored for media files. Defaults to `true` if not specified.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It states only the action and supported types, but does not disclose that read is non-destructive, whether it requires permissions, or how it handles large files or media output. The description adds no behavioral context beyond the basic action.

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?

The description is very concise, with two short sentences. The first sentence states the core action; the second clarifies support for media files, which is non-obvious and adds value. It is front-loaded and efficient, though it could be slightly more informative without losing conciseness.

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?

Given the rich schema (100% parameter coverage) and no output schema, the description is adequate for basic understanding but lacks details on media file behavior and output format. The mention of 'media files' is ambiguous—does it return binary data or a preview? The description does not clarify, so completeness is only moderate.

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 all parameters (path, type, limit, offset, show_line_numbers) are already well-documented. The description adds no parameter information beyond what the schema provides. Per the rubric, the baseline is 3 when schema covers all parameters, and the description does not improve on it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states a specific verb ('Reads') and resource ('the contents of a file'), and the mention of text/media files distinguishes it from sibling tools like write, edit, and remove. The purpose is unambiguous and the agent can immediately infer this is a read operation.

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?

There is no guidance on when to use this tool versus alternatives. It does not mention that grep is for searching content, or that read is for retrieving file contents, nor any exclusions or prerequisites. An agent is left to infer usage from the purpose alone.

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