Skip to main content
Glama

redis_setup_pubsub

Set up Redis Pub/Sub channels to broadcast events across microservices in real time. Configure pattern subscriptions and optional durable streams for reliable event delivery.

Instructions

Pro: Set up Redis Pub/Sub for real-time event broadcasting and microservice communication

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNoAPI key for authentication
channelsYesPub/Sub channel names (e.g. 'notifications', 'order-updates')
include_streamsNoWhether to also set up Redis Streams for durable messaging
pattern_subscribeNoWhether to use pattern-based subscriptions
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure, but 'Set up Redis Pub/Sub' only restates mutative intent. It does not disclose whether the operation is destructive to existing pub/sub configuration, whether an existing Redis instance is a prerequisite, how the api_key is used for authentication, or whether the operation is idempotent.

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 description is a single efficient sentence with the essential verb-resource pair front-loaded. The 'Pro:' prefix is unexplained clutter that costs a few characters, preventing a 5, but there is no redundant wording overall.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has 4 configuration parameters, no annotations, and no output schema, so the description must explain operational context, but it does not. It leaves unclear what a 'setup' actually produces, what side effects occur in the environment, and how include_streams and pattern_subscribe change the resulting behavior. The schema is informative, but the missing operational context is a significant gap for a setup tool.

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 description coverage is 100%, with all four parameters documented including defaults and an example for channels. Per the baseline rule, the description need not repeat parameter details when the schema is comprehensive, and it adds nothing beyond what the schema already provides.

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 names a specific verb ('Set up'), a concrete resource ('Redis Pub/Sub'), and a purpose ('real-time event broadcasting and microservice communication'). This clearly differentiates it from sibling Redis tools like redis_setup_caching and redis_setup_sessions. The 'Pro:' prefix is unexplained but does not obscure the core purpose.

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

Usage Guidelines4/5

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

The purpose clause 'for real-time event broadcasting and microservice communication' gives an agent clear context for when this tool is the right choice. However, it provides no exclusions and does not route to alternatives such as rstreams_generate_producer/consumer when durable stream-based messaging is more appropriate than pub/sub.

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/barnburner121/claude-plugin-marketplace'

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