Skip to main content
Glama
jeffcaradona

local-mcp-simple-server

by jeffcaradona

Read source file

read_source_file

Reads a UTF-8 text file from a server-defined source root and returns its relative path and complete content, rejecting files over 64 KiB to keep responses bounded.

Instructions

Reads one UTF-8 text file from the server's configured source root and returns its relative path and complete text. Files over 64 KiB are rejected, not truncated. The caller cannot choose or change the root; only a path relative to it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to the file, relative to the configured source root, e.g. "CustomerService.vb".

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral disclosure burden. It proactively states the 64 KiB rejection policy, the UTF-8 requirement, and the immutability of the source root, which are meaningful behavioral details beyond what the schema provides.

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?

Three short sentences, each carrying distinct information: what is read, the file-size policy, and the root constraint. The core action and return value are front-loaded with no filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple single-parameter read tool with an output schema present, the description covers the essential behaviors: path semantics, root restriction, size limit, and return content. Nothing an agent needs to invoke it correctly 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?

The input schema already documents the 'path' parameter with a clear relative-to-root description and an example. The description reinforces the relative-root constraint but does not materially add new parameter-specific meaning beyond the schema, so the baseline of 3 applies.

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 identifies the operation ('Reads one UTF-8 text file'), the resource ('server's configured source root'), and the return value ('relative path and complete text'). It is specific and unambiguous even without sibling tools to distinguish from.

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 gives clear usage constraints: the path must be relative to the configured root, the root cannot be changed, and files over 64 KiB are rejected. It does not explicitly name alternatives, but no siblings exist, so the context is sufficient for correct selection.

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