Skip to main content
Glama
MCP Filesystem Server

MCP Filesystem Server

by pocho23

read_file

Retrieve the contents of a file from allowed directories such as Documents or Downloads by providing its path, enabling safe filesystem inspection within restricted locations.

Instructions

Read contents of a file from allowed directories (Documents, Downloads)

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

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the file to read

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does contribute one real behavioral fact — access is sandboxed to Documents and Downloads — but says nothing about missing files, permission errors, binary/large files, or whether the path must be absolute.

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 the scope constraint attached inline; nothing is redundant or padded.

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 one-parameter read tool with no output schema, the essentials are present: what it does and where it can read from. Only edge-case behavior (out-of-scope path, missing file) is left uncovered, a minor gap at this complexity.

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?

Only one parameter with 100% schema coverage, so the baseline is a 4. The description still adds domain constraint on that parameter by restricting valid paths to the allowed directories, which the schema's generic "Path to the file to read" does not convey.

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+resource ("Read contents of a file") plus a scope constraint (allowed directories: Documents, Downloads). It is readily distinguishable from siblings like write_file, delete_file, and get_file_info, though it never names an alternative explicitly.

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 implied by the verb and the directory restriction, but there is no explicit guidance on when to prefer this over get_file_info or search_files, and no statement of what happens if the path falls outside the allowed directories.

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