Skip to main content
Glama
redis

Redis MCP Server

Official
by redis

xreadgroup

Read entries from a Redis stream using a consumer group, specifying key, group, consumer, and optionally count or blocking timeout.

Instructions

Read entries from a Redis stream using a consumer group.

Args: key (str): The stream key. group_name (str): The consumer group name. consumer_name (str): The consumer name. count (int, optional): Maximum number of entries to retrieve. block_ms (int, optional): Maximum time to block waiting for entries. Use None for a non-blocking read. 0 is rejected because Redis treats BLOCK 0 as an indefinite wait. stream_id (str, optional): Stream ID to read from. Use ">" for new messages.

Returns: str: The retrieved stream entries or an error message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes
group_nameYes
consumer_nameYes
countNo
block_msNo
stream_idNo>

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations present, so description carries full burden. Covers non-blocking vs blocking (with block_ms note), use of '>' for new messages, and return type. Lacks mention of consumer group semantics like message pending status, but overall good disclosure.

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?

Structured with summary, Args, and Returns sections. Not overly verbose but detailed parameter help adds length. Structure is clear, though could be slightly more concise if summary covered basic usage without exhaustive parameter list.

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?

With 6 parameters, no schema descriptions, no annotations, and an output schema, the description explains all inputs, return type, and key behaviors. Missing error details beyond generic message, but output schema likely covers structure. Sufficient for correct agent usage.

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 has 0% description coverage; description fully documents all 6 parameters in Args, including defaults, types, and special behavior (e.g., block_ms 0 rejected, stream_id '>' for new). Compensates entirely for missing schema descriptions.

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?

Description clearly states 'Read entries from a Redis stream using a consumer group', specifying verb, resource, and method. Distinguishes from siblings like xrange (which reads without consumer groups) and other read commands.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus alternatives. Usage is implied by the description (consumer group scenario), but no exclusions or contrasts with siblings like xrange or xread are provided.

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/redis/mcp-redis'

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