Skip to main content
Glama

Redis MCP Server

Official
by redis

zadd

Add members to a Redis sorted set with specified scores and optional expiration times. Manage and organize data efficiently within Redis MCP Server for structured storage and retrieval.

Instructions

Add a member to a Redis sorted set with an optional expiration time.

Args: key (str): The sorted set key. score (float): The score of the member. member (str): The member to add. expiration (int, optional): Expiration time in seconds.

Returns: str: Confirmation message or an error message.

Input Schema

NameRequiredDescriptionDefault
expirationNo
keyYes
memberYes
scoreYes

Input Schema (JSON Schema)

{ "properties": { "expiration": { "default": null, "title": "Expiration", "type": "integer" }, "key": { "title": "Key", "type": "string" }, "member": { "title": "Member", "type": "string" }, "score": { "title": "Score", "type": "number" } }, "required": [ "key", "score", "member" ], "title": "zaddArguments", "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