Skip to main content
Glama

Read a file

myio_file_read
Read-onlyIdempotent

Download files from a myIO controller over the local network, returning text or binary previews and optional base64 content for editor/admin users.

Instructions

Download a file from the controller. Text files come back as text (truncated at max_bytes, default 64 KB); binary files as size + hex preview, or base64=true for the content (max 512 KB). Editor/admin level.

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

Input Schema

NameRequiredDescriptionDefault
volNoq = internal flash (GIGA/Opta default), s = SD card (the only volume on a Due)
pathYes
base64No
serverNocontroller name (default Ground floor)
max_bytesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.2

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description goes further by disclosing truncation at max_bytes with a 64 KB default, the binary hex-preview fallback, the 512 KB cap for base64 mode, and the Editor/admin permission requirement. It stops short of describing error behavior for a missing path or the exact response envelope, which keeps it below 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 compact sentences, front-loaded with the action, then the result formats, then the permission gate — no filler and every clause carries operational information.

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

Completeness4/5

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

For a five-parameter read tool with no output schema, the description covers the behaviors an agent most needs (truncation limits, binary encoding, auth level) and leaves the schema to document vol and server. Only the absence of error/not-found semantics keeps it from being fully complete.

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 only 40% (vol and server are documented; path, base64, and max_bytes are not), and the description compensates well by explaining base64=true, the max_bytes truncation default, and the effective base64 size ceiling. It adds no guidance on the path format or which volume to prefer, leaving a small gap.

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 ('Download a file from the controller') and immediately clarifies what comes back for text versus binary files, which lets an agent distinguish this from siblings like myio_file_write and myio_files without opening a schema.

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 by the tool's nature, and it adds a prerequisite ('Editor/admin level'), but it never names an alternative or states when not to use it — e.g. when to use myio_files to list instead of reading a specific path.

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