Skip to main content
Glama

desktop_read_file

Reads bounded UTF-8 text from a workspace-relative file at a specified offset and returns a short-lived, one-use observation ID for follow-up access.

Instructions

Read bounded UTF-8 text; issue a 5-minute, one-use instance-scoped observation_id.

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

Input Schema

NameRequiredDescriptionDefault
pathYesWorkspace-relative path; use . for root
lengthNo
offsetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations supplied, the description does disclose two non-obvious behaviors: reads are bounded to UTF-8 text, and each call emits a 5-minute, one-use, instance-scoped observation_id. It does not say what happens for binary or oversized files, whether workspace permissions are required, or whether the observation_id is returned in the response body.

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 primary action leads and the token side effect follows. It is economical, though the observation_id clause is terse to the point of being cryptic without explanation of what the token is for.

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?

There are no annotations and no output schema, so the description bears the full burden, yet it omits the semantics of two of three parameters, the behavior for binary content, and error conditions. It covers purpose and the observation token but leaves an agent unable to use offset/length correctly.

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 only 33%: path is documented, but length and offset are not. The description does not compensate, saying nothing about whether length is bytes or characters, what a negative offset means (the schema permits negative values), or how defaulting behaves.

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 states a specific verb (read) and resource (bounded UTF-8 text), and the name supplies the file context. It is distinguishable from desktop_get_file_info and desktop_list_directory, though it never names those siblings or states the contrast explicitly.

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 guidance, no mention of alternatives such as desktop_get_file_info for metadata or desktop_search for locating files, and no prerequisites. The only usage signal is the implicit fact that this reads text content.

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