Skip to main content
Glama

fs_read

Read text file contents from a path within the FSGUARD_ROOT directory, providing safe, containment-checked access.

Instructions

Read a text file's contents. path is relative to FSGUARD_ROOT.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It correctly implies a read-only operation (no side effects) and adds the key detail that paths are relative to FSGUARD_ROOT. However, it does not disclose error handling, file encoding, or limitation to text files only, which are relevant for safe invocation.

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, consisting of two short sentences with no unnecessary words. The critical scoping detail (path relative to FSGUARD_ROOT) is front-loaded in the second sentence, ensuring the agent reads it.

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 simple read operation with one parameter and no output schema, the description is largely sufficient: it states the tool's function and the key path constraint. Minor gaps (such as return format and error behavior) are not critical given the simplicity, but a bit more detail could improve completeness relative to an agent's expectations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 compensate. It does so by explaining the crucial semantic of the path parameter: relative to FSGUARD_ROOT. This adds significant meaning beyond the bare schema, though it does not cover other potential constraints like allowed file types or size limits.

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 verb 'read' and the resource 'text file contents', making the tool's purpose unambiguous. It also specifies that the path is relative to FSGUARD_ROOT, which differentiates it from sibling tools like fs_write, fs_list, fs_search, and fs_move.

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?

The description implies usage (reading file contents) but does not explicitly mention when to avoid this tool or provide alternatives. Unlike get_calls which names a sibling, here the sibling tool names are enough to infer differentiation, but no formal guidance is given. The intended context is clear from the verb 'read'.

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/BerkantACUN/fsguard-mcp'

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