Skip to main content
Glama

Read pane messages

read_messages

Read a pane’s durable message inbox, using an after cursor to fetch only newer messages and dropped counts to track evictions.

Instructions

Read a pane's durable message inbox (agent-orchestration E). after is a cursor — pass the highest seq you have seen to get only newer messages. dropped reports how many were evicted by the per-pane cap. The inbox is in-memory and starts over (seq back at 1) when the app restarts: epoch names the current inbox, and reset:true means your after cursor predates it, so messages is the whole backlog — re-base your cursor on latestSeq. For live delivery, subscribe to the pane's messages resource instead of polling.

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": {
      "paneId": "<paneId>"
    },
    "name": "read_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNo
paneIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.13

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the entire behavioral burden and does so thoroughly: in-memory storage, eviction under a per-pane cap surfaced via `dropped`, cursor invalidation across restarts flagged by `reset:true`, and an `epoch` to identify the current inbox generation. These are exactly the failure modes an agent would otherwise get wrong when paginating.

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?

Sentences are front-loaded with purpose, then cursor mechanics, then restart behavior, then the polling alternative. Given there is no output schema, the return-field explanations (`dropped`, `epoch`, `reset`, `latestSeq`) are necessary rather than padding.

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

Completeness5/5

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

No output schema exists, so the description compensates by naming the returned fields and their semantics, including the re-base instruction on `latestSeq` when a reset occurs. Nothing an agent needs to call this correctly and recover from cursor loss is missing.

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 0%, so the description must carry the load: it fully explains `after` as a cursor meaning the highest seq already seen, including the recovery procedure when it predates the epoch. `paneId` is left undefined, though its meaning is unambiguous from context and required-ness.

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?

"Read a pane's durable message inbox" states a specific verb plus resource and scopes it (durable, per-pane, agent-orchestration), which separates it from read_pane and the other pane-state siblings. An agent knows immediately what it retrieves.

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?

It gives a concrete when-not: for live delivery, subscribe to the pane's messages resource instead of polling. It also implies the read-history use case through the cursor mechanics, but it never states explicitly when this is preferable to read_pane or list_panes, so it stops short of full routing guidance.

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