Skip to main content
Glama

read_file

Read-only

Retrieve the contents of a text file from the Keelhob filesystem base, defaulting to the WordPress root, to inspect files within allowed paths.

Instructions

Read a text file (confined to the Keelhob filesystem base, default the WordPress root). Returns file contents.

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
pathYesAbsolute path or path relative to the WordPress root.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.2

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds a genuine behavioral constraint (filesystem sandboxing to the Keelhob base) and states that file contents are returned, but says nothing about size limits, binary/non-text handling, directory paths, or failure behavior.

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?

Two short sentences, front-loaded with the action and immediately followed by the return value, with zero filler.

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 readOnlyHint and no output schema, the description covers the action, the sandbox scope, and the return value. Minor gaps remain on error cases and large or binary files, but nothing essential to correct invocation is missing.

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 the single path parameter is already documented as absolute or WordPress-root-relative. The description reinforces the confinement boundary ('confined to the Keelhob filesystem base'), which adds modest meaning beyond the schema, but no path escaping or symlink rules.

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 and resource ('Read a text file') and names the scope constraint (confined to the Keelhob filesystem base, default WordPress root). It is clearly distinguishable from siblings like write_file, edit_file, and list_directory, though it never names them 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 only implied: the fact that it reads text files within a confined base suggests when it applies, but there is no explicit when-to-use or when-not-to-use guidance, and no routing to alternatives such as list_directory for enumeration.

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