Skip to main content
Glama
m4l MCP server

m4l MCP server

device_read_file

Read embedded files as text, including in-memory JSON with unsaved edits; binary files return only size and type. Use for scripts, small JSON, and raw checks.

Instructions

Read an embedded file as text (JSON is pretty-printed from the in-memory state, so unsaved edits show). Binary files return size and type only. Use patch_* tools to inspect patchers; this is for scripts, small JSON and raw checks.

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

Input Schema

NameRequiredDescriptionDefault
nameNo
pathYes
max_linesNo
start_lineNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does real work: it discloses that JSON is pretty-printed from in-memory (dirty) state, and that binary files yield only size and type. Missing are error behavior for bad paths, truncation semantics for large files, and any permission notes.

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?

Three front-loaded sentences with essentially no filler; the core operation comes first, then output format, then the sibling redirect. Slightly dense phrasing, but every clause carries information.

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?

There is no output schema, and the description partly covers returns (pretty-printed JSON, binary size/type), which is a plus. But for a four-parameter read tool with zero schema documentation, leaving range/limit parameters unexplained makes the definition only narrowly sufficient.

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 four parameters, so the description must compensate and it does not. The undocumented 'name', 'max_lines' (default 200) and 'start_line' params are especially costly for a read tool, since an agent has no signal that output can be paged or how truncation works.

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 an embedded file as text') and adds what the read reflects (in-memory state, unsaved edits). It separates itself from the patch_* family but says nothing about adjacent siblings like device_extract or object_io, so it's clear but not fully differentiated.

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

Usage Guidelines4/5

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

Explicitly redirects patch inspection to patch_* tools and scopes this tool to 'scripts, small JSON and raw checks'. That's clear context plus one named exclusion; it stops short of stating when this tool should not be used for larger files or non-text payloads.

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