Skip to main content
Glama
szkeli

Local Computer Bridge

by szkeli

Read local file

read
Read-only

Retrieve contents from a local text file on your macOS or Linux machine through Local Computer Bridge, with optional line offset and limit for specific portions.

Instructions

Read a local text file. Use this for file contents; use bash for directory listings, file discovery, grep/ripgrep, git commands, and other shell operations. Paths may be absolute, start with ~/, or be relative to the configured base directory.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to the local text file.
limitNoMaximum number of lines to return. Defaults to 1000, max 5000.
offsetNo1-based starting line. Defaults to 1.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
contentYes
end_lineYes
truncatedYes
start_lineYes
next_offsetYes
total_linesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false, and destructiveHint=false, so the safety profile is covered. The description still adds non-obvious behavior beyond the schema: it is limited to text files and defines how paths resolve (absolute, ~/, or relative to the configured base directory). It stops short of covering failure behavior (missing file, encoding, non-text input), which keeps it from a 5.

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 sentences, each carrying a distinct load: what it reads, when to prefer it over bash, and path syntax. No repetition of the schema or annotations and no filler.

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?

An output schema exists, so return format and pagination semantics need not be restated. Purpose, routing, and path semantics are all present, leaving nothing an agent needs before invoking the tool.

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?

Schema description coverage is 100%, so limit/offset defaults and ranges are already documented, establishing a baseline of 3. The description goes beyond that by specifying the accepted path forms (absolute, ~/, base-relative), which the schema's terse 'Path to the local text file' does not.

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?

States a specific verb and resource ('Read a local text file') and immediately scopes it against the closest sibling by naming what bash is for. An agent can separate read from bash without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly gives the when-to-use condition ('use this for file contents') and enumerates the alternatives handled by bash (directory listings, file discovery, grep/ripgrep, git). This is a real routing rule, not an implied one.

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