Skip to main content
Glama
NTHvt981

Windows Agent MCP Server

by NTHvt981

read_file

Read a UTF-8 text file and get its raw contents as plain text, avoiding JSON escaped output. For long files, truncation is reported with the exact call to continue reading.

Instructions

Read a UTF-8 text file.

Returns the file's text directly, NOT wrapped in JSON. A JSON envelope would escape every newline in the content onto a single line, which is hard to read and expensive in context.

Long files are truncated rather than refused, and the truncation is reported with the exact call needed to continue. This is a read-only operation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
max_linesNo
start_lineNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/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 goes beyond a simple summary by explaining the raw text return format, the rationale against JSON wrapping, truncation policy for long files, and how continuation after truncation is reported. It also explicitly states the operation is read-only.

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 compact and front-loaded with the core purpose. Every sentence earns its place: raw output format, truncation behavior, and read-only status. It is neither padded nor under-specified.

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 relatively simple file-reading tool with an output schema present, the description covers the most important behavioral concerns: raw text, truncation, continuation, and read-only safety. However, it omits parameter-level semantics and explicit routing among siblings, so it is not fully complete.

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

Parameters2/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 for explaining path, max_lines, and start_line. It does not describe any of these parameters explicitly, and while it mentions truncation, it never ties that behavior to the max_lines parameter or explains how start_line and max_lines interact. Parameter names and defaults exist in the schema, but the description adds no semantic guidance.

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 opens with a specific verb and resource: 'Read a UTF-8 text file.' It clearly distinguishes this from siblings like write_file, edit_file, list_directory, and find_files by establishing the read-only nature and the target content type. There is no ambiguity about what the tool accomplishes.

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 context: this is the tool for reading text files and is explicitly read-only, which implies it should not be used for writing or editing. However, it does not explicitly name alternatives or provide when-not-to-use guidance, so it stops short of a 5.

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/NTHvt981/windows-agent-mcp'

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