Skip to main content
Glama

session_read

Reads recent messages and busy status from a registered Agent Bridge session, returning full message text with pagination and flagging when the agent needs user input.

Instructions

只读:读登记册会话最近 N 条消息 + busy 状态,返回消息全文(不摘要/不截断,超长按条数分页)。回合结束后若 pi 在提问,标出 needsUser 与原文。

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": {
      "sessionId": "<sessionId>"
    },
    "name": "session_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo条数,默认 20
beforeNo分页游标(上一页返回的 nextBefore)
sessionIdYesBridge 会话 ID(必须是本连接器登记册内的会话;session_adopt 是唯一接管入口)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose useful behavior: read-only, no summarization/truncation, pagination by message count, busy status, and needsUser marking with original text. It omits permission/auth requirements and error behavior for invalid or out-of-registry session IDs.

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?

The definition is a compact, front-loaded block led by '只读' and the core action, with no filler. It is dense but every clause (full text, pagination, needsUser) carries information.

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 read tool with three well-described parameters and no output schema, the description covers return content, pagination, and the needsUser flag adequately. Remaining gaps are auth requirements and error handling, which are secondary for a read operation.

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 100%, so the schema documents all three parameters. The description reinforces that the count refers to recent messages and that pagination is by message count (tied to limit and before), but adds no syntax or format detail beyond the schema.

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 specifies the verb (read), the resource (messages of a registry session), and scope (recent N plus busy status, full text, paginated by count). '只读' distinguishes it from mutating siblings like session_send/session_stop, though it does not name any sibling explicitly.

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?

The read-only framing implies when to reach for it versus write tools, and the schema references session_adopt as the sole takeover entry. But the description itself states no explicit when/when-not conditions or alternatives such as session_list or session_wait.

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