Skip to main content
Glama
local-pc-mcp

local-pc-mcp

by contra333

Read text lines

file_read_lines
Read-only

Reads a bounded line range from a UTF-8 file under the local read policy, enabling targeted inspection without loading the entire file.

Instructions

Read a bounded line range of a UTF-8 file under the local read policy.

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_lines"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
max_linesNo
start_lineNo

Output Schema

NameRequiredDescriptionDefault
pathYes
reasonYes
contentYes
end_lineYes
next_lineYes
truncatedYes
start_lineYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful context beyond that: the file must be UTF-8 and reads are subject to a local read policy. It does not disclose what happens for non-UTF-8 or binary content, or whether a partial result at EOF is signalled.

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?

A single front-loaded sentence with no filler or redundant restatement of the title. It is efficient, though the brevity contributes to the specification gaps noted elsewhere rather than being a model of density.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and the annotations cover safety. However, with three parameters at 0% schema coverage and no guidance on file-size or encoding failure modes, an agent could still invoke it incorrectly (e.g. assuming 0-based line numbers).

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 only bare titles ('Path', 'Max Lines', 'Start Line') and defaults are available and the description must compensate. It only gestures at 'bounded line range', leaving the 1-based start_line convention, whether max_lines is a hard cap, and behavior when the range exceeds file length undocumented.

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 bounded line range of a UTF-8 file'), which distinguishes it from a whole-file reader like file_read by scope and encoding. It stops short of naming any sibling explicitly, so the differentiation is inferred from the phrase 'bounded line range' rather than asserted.

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: 'bounded line range' suggests this is the tool for partial reads rather than whole-file reads, but there is no explicit when-to-use, when-not-to-use, or named alternative. The 'local read policy' clause hints at an access constraint without telling the agent what that constraint means for selection.

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