Skip to main content
Glama
AgentExec

AgentExec

Official
by uniac-ai

read

Read-only

Retrieve numbered text lines with offset/limit controls, or view PNG, JPEG, GIF, or WebP images up to 3 MiB from the workspace.

Instructions

Reads a text file as numbered lines, or shows a PNG, JPEG, GIF or WebP of up to 3 MiB as an image; offset and limit are for text.

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

Input Schema

NameRequiredDescriptionDefault
pathYesInside the workspace; relative to it, or absolute; ~ is the home folder.
limitNoHow many lines; 2000 by default.
offsetNoThe first line, from 1.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.0.11
    • changedInput schema / properties / path / description
      Previous value: -"Inside the workspace; relative to it, or absolute."New value: +"Inside the workspace; relative to it, or absolute; ~ is the home folder."
  2. First observedv0.0.2

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description must carry the rest, and it does add real behavior: output is numbered lines for text, an image for four specific formats, and a hard 3 MiB ceiling. Not covered are truncation signalling, error behavior for unsupported formats, or how binary non-image files are handled.

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 sentence with a semicolon that front-loads the primary text-reading mode and appends the image mode and the parameter scoping caveat. Every clause carries information; nothing is padding.

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 three-parameter read tool with no output schema, the description covers both operating modes, the size limit, and the text-only nature of the pagination parameters. Remaining gaps—error handling for oversized or unsupported files—are modest for a low-risk read operation.

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 coverage is 100%, so path, limit, and offset are already documented with defaults and origins. The description adds one genuinely useful clarification beyond the schema—that offset and limit apply only to text mode, not to image reads—but otherwise restates what the schema 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?

The description names a specific verb ('Reads') and resource ('a text file') and goes further by declaring a second mode (image display for PNG/JPEG/GIF/WebP). The two branches are concrete enough that an agent can tell this apart from the 'list' and 'search' siblings, though neither sibling is named for explicit contrast.

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 rather than stated: the clause 'offset and limit are for text' tells the agent when those parameters apply, and the 3 MiB cap implies a size precondition for images. There is no explicit when-to-use-this-vs-alternatives guidance and no stated fallback for oversized or non-image files.

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