Skip to main content
Glama
Gemini Remote Agent MCP

Gemini Remote Agent MCP

by lisycotana

read_file

Read-only

Read UTF-8 file lines, selected ranges, or tail lines from EOF and return a sha256 hash needed to perform safe edits with edit_file.

Instructions

Read UTF-8 lines (or tail_lines from EOF); pass returned sha256 to edit_file.

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

Input Schema

NameRequiredDescriptionDefault
pathYes
end_lineNo
start_lineNo
tail_linesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

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 and openWorldHint=false, so the safety profile is covered. The description adds real context beyond the annotations: the encoding is fixed to UTF-8, tail reading is anchored at EOF, and a sha256 is returned specifically for use by edit_file. It does not disclose line numbering, how the returned content is bounded for large files, or what happens on binary/non-UTF-8 input.

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 compact sentence with no filler, and the core read behavior is front-loaded before the edit_file handoff. The density is justified, though the terse parenthetical syntax takes a moment to parse.

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-value structure need not be described. However, with four parameters at 0% schema coverage, a file-reader with paging and tail modes needs more explanation than one sentence supplies, particularly the precedence between tail_lines and the start/end range.

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 carries the full burden, and it only gives meaning to one of four parameters by naming tail_lines as 'from EOF'. It says nothing about how start_line and end_line interact, whether they are inclusive, what their defaults mean, or whether tail_lines overrides line ranges. Most parameter semantics remain unstated.

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+resource ('Read UTF-8 lines') and names the two modes, head-of-file line ranges versus 'tail_lines from EOF'. It also states a distinctive side effect (returning a sha256 for edit_file), which separates it from write/edit siblings. It stops short of naming read_multiple_files as the batch alternative, so sibling differentiation is only partial.

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 implied through the workflow hint 'pass returned sha256 to edit_file', which tells the agent this is the read step preceding an edit. There is no explicit when-not guidance (for example, use read_multiple_files for several paths, or avoid re-reading before edits). The agent must infer selection rules from sibling names alone.

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