Skip to main content
Glama
Dissimilis

DirForge

read_file

Read the contents of a text file within size limits, with options to specify line range or byte count. Binary files are automatically rejected.

Instructions

Read the text contents of a file. Only works for text files within the size limit. Binary files (images, videos, executables, etc.) will be rejected.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesRelative path to the file.
maxBytesNoMaximum bytes to read (default: server limit).
startLineNoIf provided, returns only lines starting from this 1-based line number.
endLineNoIf provided, returns only lines up to and including this 1-based line number.
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool reads text, rejects binaries, and hints at size limits, but does not mention error handling for missing files or default behavior for parameters like line ranges. The description adds some context beyond the schema but not enough for full transparency.

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?

The description is extremely concise: two sentences, no wasted words. The purpose is front-loaded in the first sentence. Every sentence adds value, making it efficient for an AI agent to process.

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?

Given the tool's simplicity, the description is largely complete. It covers the key behavioral constraints (text only, size limit, rejection of binaries). It does not explain the line range feature in detail, but the schema already covers that. Without an output schema, the description could hint at return format, but it's not essential for a read operation.

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 100%, so each parameter already has a description. The description adds no new meaning to the parameters beyond what the schema provides. For example, it mentions 'size limit' but the schema already describes maxBytes. Baseline score of 3 is appropriate.

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 the tool's purpose: 'Read the text contents of a file.' It specifies it only works for text files within a size limit, distinguishing it from potential sibling tools that might handle binary files. The verb 'Read' and resource 'file' are specific.

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?

The description provides clear usage conditions: 'Only works for text files within the size limit. Binary files ... will be rejected.' This tells the agent when to use the tool (text files) and when not to (binary files), though it does not explicitly suggest alternatives for binary files.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dissimilis/DirForge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server