Skip to main content
Glama

file_read

Reads a small text file from an Android device by absolute path, with an optional byte cap, to inspect configs, logs, or preference exports.

Instructions

Read a small text file from the device (config, log, prefs export).

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
pathYesAbsolute path on the device
max_bytesNoCap the read (default 64000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it only delivers the "small text file" constraint. It does not say what happens on binary or oversized files, whether output is truncated at max_bytes, what encoding is assumed, or how read errors surface — all material for an unannotated read tool. The read-only nature is conveyed only implicitly by "Read."

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?

A single tight sentence with the resource and its constraining adjective front-loaded and examples kept to a short parenthetical. Nothing is wasted and nothing important is buried.

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?

For a two-parameter read with no output schema, the description covers what the tool does but not how it behaves at its edges (truncation, non-text files, errors). Adequate to call correctly, but thin given the absence of annotations and output schema to fill the gap.

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

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with both path ("Absolute path on the device") and max_bytes (default 64000) documented in the schema, so the baseline is 3. The description adds no format, path-resolution, or truncation semantics beyond what the schema already provides.

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+resource ("Read a ... text file from the device") and narrows scope to config, log, and prefs exports, which implicitly distinguishes it from the binary/bulk transfer implied by file_pull and the listing done by file_ls. It stops short of naming or contrasting any sibling explicitly, so the distinction is inferred rather than stated.

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 parenthetical use cases (config, log, prefs export) give an implied sense of when this tool fits, and the word "small" hints at a boundary. There is no explicit when-not guidance, no mention of file_pull for large/binary files, and no stated prerequisites such as needing an adb_connect session first.

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