Skip to main content
Glama
YawLabs

redis-mcp

by YawLabs

redis_health

Read-onlyIdempotent

Get a one-call health snapshot of a Redis instance, including memory, clients, ops/sec, keyspace, persistence, replication, and recent slow commands. Use for connection sanity checks and diagnosing performance issues.

Instructions

One-call health snapshot rolled up from INFO + DBSIZE + recent SLOWLOG: server version and mode, uptime, memory used vs maxmemory + eviction policy, connected clients + blocked clients, ops/sec, keyspace hit/miss ratio, total keys per database (and how many lack a TTL), persistence (RDB/AOF) status, replication role, and the most recent slow commands. Use as a connection sanity check and the first stop in 'why is Redis slow / using so much memory?' triage.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slowlogLimitNoNumber of recent slow commands to include (default 5, 0 to skip).
Behavior5/5

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

Annotations already declare readOnlyHint and idempotentHint. The description adds extensive behavioral detail about the specific metrics and data sources (INFO, DBSIZE, SLOWLOG), which goes beyond annotations and provides transparency about what the tool accesses.

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 well-structured paragraph that front-loads the key metrics. It is concise given the amount of information, though it could be slightly more scannable with lists.

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?

Despite no output schema, the description thoroughly explains what will be returned. The single parameter is fully documented in schema. The tool is simple and the description covers all necessary context for selection and invocation.

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 coverage is 100%, so baseline is 3. The description mentions slow commands in context but does not add new meaning to the 'slowlogLimit' parameter beyond the schema's description. No additional value provided.

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 clearly states the tool provides a health snapshot from INFO, DBSIZE, and SLOWLOG, listing specific metrics like server version, memory, clients, ops/sec, keyspace, persistence, replication, and recent slow commands. It distinguishes itself from siblings like redis_slowlog by being a rolled-up summary.

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 description explicitly says 'Use as a connection sanity check and the first stop in 'why is Redis slow / using so much memory?' triage,' providing clear when-to-use guidance. It does not explicitly exclude alternatives like redis_advisor, but the context is sufficient.

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

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