Skip to main content
Glama

linger_read_document

Read full or paginated UTF-8 content from Linger document cards, reply segments, or room documents, and save binary or large files locally when needed.

Instructions

Read full or paginated UTF-8 content of a Linger document/file card (from snapshot.documents, reply segments, or linger_read_room), or save binary/large files locally via save_to_file=true. Prefer this over asking the Linger agent to paste full text into chat.

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": {
      "document_id": "<document_id>"
    },
    "name": "linger_read_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
offsetNoCharacter offset for paginated reads (default 0)
max_charsNoMax characters to return in one call
document_idYesDocument ID referenced by a Linger document card or attachment
save_to_fileNoSave the downloaded document locally with 0600 permissions and return saved_path
document_version_idNoOptional immutable Document Version ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose meaningful behavior: pagination via offset/max_chars, UTF-8-only content, and that binary/large files must be diverted to local save rather than returned inline. It omits auth/permission requirements, what happens if save_to_file is false on a binary file, and error behavior.

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?

Two sentences, front-loaded with the primary action, with the local-save mode and the sibling preference following in priority order. Dense but every clause carries information; the parenthetical source list is the only slightly bulky element.

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

Completeness3/5

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

With no annotations and no output schema, the description explains the two return modes (inline UTF-8 content vs. a saved path) but leaves gaps around failure modes, size limits beyond max_chars, and permission requirements. Adequate for a read tool, but not fully self-sufficient.

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 100%, so baseline is 3. The description adds a decision rule the schema does not: save_to_file is for binary or large files, and reads are paginated — giving the agent a reason to set these parameters rather than just a description of them.

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 (read UTF-8 content of a Linger document/file card), plus the secondary mode (save binary/large files locally with save_to_file=true). The parenthetical naming of where document_ids come from (snapshot.documents, reply segments, linger_read_room) further distinguishes it from linger_read_room and linger_ask_agent.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent away from linger_ask_agent: 'Prefer this over asking the Linger agent to paste full text into chat.' That is a clear alternative with a stated selection condition. It stops short of stating when-not to use it (e.g., when the ID is unknown or the content is not a document).

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