Skip to main content
Glama

read_message_range

Retrieve messages by sequence range to get exact context from a specific conversation section. Use when you need targeted context from earlier exchanges referenced by sequence numbers.

Instructions

Read messages in a specific sequence range. Zoom into a conversation section.

AUTOMATIC TRIGGERS - Call this when:

  • You need context from a specific point in the conversation

  • A message references an earlier seq number

  • You want to review a specific exchange between agents

DIFFERENCE from read_messages: This reads a specific range by sequence numbers, not just "new" messages. Use for targeted context retrieval.

PARAMETERS:

  • session_id: Session to read from

  • start_seq: Starting sequence number (inclusive) - get from message metadata

  • end_seq: Ending sequence number (exclusive) - max range is 500 messages

  • agent_id: Your agent ID (must belong to the session)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
end_seqYes
agent_idYes
start_seqYes
session_idYes
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses key behaviors: inclusive start_seq, exclusive end_seq, 500-message maximum, and agent_id session membership. It does not describe error cases or return format, but for a read-only range retrieval tool the coverage is solid.

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?

The description is front-loaded with a one-sentence summary, followed by scannable trigger bullets and a compact parameter list. No filler or redundant content; each section earns its place by helping selection or invocation.

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?

Given the tool's moderate complexity and absent output schema, the description covers purpose, triggers, sibling differentiation, and all parameter semantics. It does not explicitly describe the return shape, but 'Read messages' clearly implies the returned content, and nothing needed to select or invoke the tool is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the inline PARAMETERS section fully compensates. Every parameter gets meaningful guidance: start_seq should come from message metadata, end_seq is exclusive with a max range of 500, and agent_id must belong to the session. This adds significant value beyond the bare schema.

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?

The description opens with a specific verb and scope: 'Read messages in a specific sequence range'. It clearly distinguishes itself from read_messages by focusing on range-based retrieval rather than 'new' messages, so an agent can differentiate it from related message tools.

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

Usage Guidelines5/5

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

The 'AUTOMATIC TRIGGERS' section explicitly lists when to call the tool (e.g., 'A message references an earlier seq number', 'review a specific exchange between agents'). It also names the alternative read_messages and explains the difference, giving clear when-to-use and when-not-to-use guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Vedant9500/OpenLMlib'

If you have feedback or need assistance with the MCP directory API, please join our Discord server