Skip to main content
Glama
local-pc-mcp

local-pc-mcp

by contra333

Read file

file_read
Read-only

Reads UTF-8 text files or previews PDF text from allowed local paths, enabling MCP clients to inspect file contents.

Instructions

Read UTF-8 text or a PDF text preview. PDF continuation/images: file_read_pdf.

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

Input Schema

NameRequiredDescriptionDefault
pathYes

Output Schema

NameRequiredDescriptionDefault
pathYes
contentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this is a read-only, non-destructive, closed-world operation, so the safety profile is covered. The description adds one genuinely useful behavioral fact: the PDF read is only a text preview, not full extraction, which signals partial output. It leaves gaps around encoding failures, binary files, and any size or truncation limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, both front-loaded and free of filler; the routing note earns its place. The telegraphic phrasing "PDF continuation/images:" is slightly compressed and takes a moment to parse, which keeps it from a top score.

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 annotations and an output schema, the definition covers what the agent must know to invoke it correctly. The remaining small gaps are path-root semantics and behavior on non-UTF-8 input.

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?

There is a single required `path` parameter and its meaning is self-evident from the tool's read-a-file purpose. Schema coverage is 0%, but for one obvious parameter the description needn't do much; the only missing detail is whether the path is workspace-relative or absolute.

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?

The description gives a specific verb and resource ("Read UTF-8 text") and narrows scope to UTF-8/PDF text, so the agent knows this is a text-extraction read. It explicitly routes PDF continuation and image extraction to file_read_pdf, which differentiates it from the closest sibling. It does not distinguish itself from file_read_lines, which is a remaining ambiguity for text files.

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 gives one explicit routing rule: use file_read_pdf for PDF continuation and images. It offers no context for when to prefer this over file_read_lines or file_search, or advice for large files, so usage is only partially implied.

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