Skip to main content
Glama

clearly_file_read

Read-onlyIdempotent

Read file details, contents and a download link for an accessible workspace file by id. Images and SVGs return image content. Text, code, CSV, JSON, Markdown, HTML, Word, RTF and PDF return text with optional pagination and line matching.

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": {
      "id": "<id>"
    },
    "name": "clearly_file_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
grepNoText: every matching line, numbered.
limitNoText: lines to return.
offsetNoText: start at this line (0-based).

Output Schema

NameRequiredDescriptionDefault
okYes
codeNo
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/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 closed-world, so the safety profile is covered. The description adds real behavioral detail beyond that: return type varies by file type (images/SVGs return image content, text formats return text) and a download link is included. It does not mention size limits or behavior for inaccessible files.

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?

Two sentences, front-loaded with the core action and scope, then the return-type behavior. No filler and no restatement of the tool name. The format list is dense but each item conveys which files yield text versus image output.

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?

With an output schema present, the description needn't explain return values, yet it usefully characterizes them by file type. For a read tool of this complexity, the only material gaps are error behavior for inaccessible or missing files and any file-size limits.

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 coverage is 75% and the schema's own parameter notes are terse. The description adds a genuine constraint the schema lacks: pagination and line matching apply only to text-type outputs, not to images or SVGs. It does not explain the interaction between grep and limit/offset, but the applicability scoping is meaningful added value.

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 a workspace file's details, contents and download link by id. The phrase 'accessible workspace file' scopes it to files the caller can reach. It does not explicitly distinguish itself from sibling readers like clearly_read or clearly_canvas_read, which keeps it just short of a 5.

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 requirement of a file id and the 'accessible workspace file' scope, but there is no explicit when-to-use or when-not-to-use guidance, and no alternative is named. An agent must infer that this is the tool for file contents rather than canvas, component, or skill content.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.