Skip to main content
Glama

root_file

Inspect, list, read, or write files on an Android host while realpath confinement keeps access within allowed paths.

Instructions

Inspect, list, read, or write files on the Android host with realpath confinement.

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": {
      "action": "<action>",
      "path": "<path>"
    },
    "name": "root_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
actionYes
contentNo
encodingNoutf8
maxBytesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the realpath confinement trait, which is genuinely useful, but is silent on what a write does to existing files (overwrite vs create), whether reads are truncated by maxBytes, permission or root requirements, and error behavior — all critical for a tool that can mutate the host filesystem.

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; the verb list is functional rather than padded. Its brevity is close to exemplary on this dimension, though the comma-list of verbs is slightly weaker than one crisp statement of scope.

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

Completeness2/5

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

For a five-parameter tool with zero schema coverage, no annotations, and no output schema, the definition is far too thin. It never explains what stat or list return, how write content is encoded, or what happens on oversized reads, leaving the agent to guess at call-shaping details.

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% across five parameters, and the description compensates for almost none of it. It echoes the action verbs already enumerated in the schema but says nothing about `content` semantics, `encoding` base64 behavior, `maxBytes` truncation/default, or what `path` is relative to under realpath confinement.

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 specific verbs (inspect, list, read, write) against a concrete resource (files on the Android host), and the verbs map cleanly onto the four enum actions. The realpath-confinement phrase also separates it from a generic shell, though it never names a sibling it replaces.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance. Given that root_shell and app_manage in the sibling set can plausibly touch files, an agent gets no rule for choosing this tool over those, and nothing indicates prerequisites such as root access.

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