Skip to main content
Glama

Redis MCP Server

Official
by redis

zrange

Retrieve specific members from a Redis sorted set by defining a range and optionally including their scores. Simplifies data extraction for efficient management and search operations.

Instructions

Retrieve a range of members from a Redis sorted set.

Args: key (str): The sorted set key. start (int): The starting index. end (int): The ending index. with_scores (bool, optional): Whether to include scores in the result.

Returns: str: The sorted set members in the given range or an error message.

Input Schema

NameRequiredDescriptionDefault
endYes
keyYes
startYes
with_scoresNo

Input Schema (JSON Schema)

{ "properties": { "end": { "title": "End", "type": "integer" }, "key": { "title": "Key", "type": "string" }, "start": { "title": "Start", "type": "integer" }, "with_scores": { "default": false, "title": "With Scores", "type": "boolean" } }, "required": [ "key", "start", "end" ], "title": "zrangeArguments", "type": "object" }

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