Skip to main content
Glama

Read an attachment

read_attachment
Read-onlyIdempotent

Shared attachments expire after 24 hours and are revoked immediately when removed from the shared sent-chat list or when chat is reset. Dashboard metadata exposes expiresAt; reconnecting clients renew available uploads. Read an explicitly shared sent-chat attachment by id and dashboardId. Images return native image data; documents return bounded extracted text with truncation metadata.

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": {
      "attachmentId": "<attachmentId>"
    },
    "name": "read_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
dashboardIdNoWhich live dashboard (browser tab) runs it; from get_dashboard_state. Optional when one tab stands out: the tab the user last approved an action in, the only live tab, or the only tab on screen. Refused before any approval when the target is ambiguous or disconnected.
attachmentIdYes
idempotencyKeyNo
expectedRevisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds substantial context beyond them: the 24-hour expiry window, immediate revocation on removal from the shared list or chat reset, expiresAt exposure via dashboard metadata, and renewal by reconnecting clients. It also discloses the return shape difference between images (native image data) and documents (bounded extracted text with truncation metadata), which the agent could not otherwise predict.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The four sentences are dense but the lead is buried: the actual action ('Read an explicitly shared sent-chat attachment') appears third, after two sentences of lifecycle policy. The lifecycle detail is valuable but should follow, not precede, the statement of what the tool does.

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 4-parameter read tool with no output schema, the description covers lifecycle, eligibility, and the two possible return formats, which is most of what an agent needs. The remaining gap is failure behavior (what an expired or revoked attachment yields) and the purpose of the mutation-flavored parameters.

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 only 25%, so the description must compensate, and it partially does by naming attachmentId and dashboardId as the selection pair. But idempotencyKey and expectedRevision are wholly unaddressed in both schema and description, despite being unusual for a read-only operation and worth explaining.

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 third sentence states a specific verb and resource: 'Read an explicitly shared sent-chat attachment by id and dashboardId,' which scopes the action precisely. No sibling tool in the catalog shares this behavior, so no sibling differentiation is needed, but the description never explicitly says it is the only reader of attachments.

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 through the qualifier 'explicitly shared sent-chat attachment' and the revocation/expiry rules, which tell an agent that only currently-shared, unexpired uploads are readable. However, there is no explicit when-not-to-use statement, no named alternative, and no guidance on what to do when a read is refused.

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.