Skip to main content
Glama
YawLabs

redis-mcp

by YawLabs

redis_advisor

Read-onlyIdempotent

Analyze Redis health by checking for large keys, expired keys missing TTL, eviction pressure, and fork latency risks with severity and actionable fixes.

Instructions

Rolled-up Redis health lint pass -- one call returns four categories of findings, each with a severity and an actionable fix:

  • big_keys: sampled keys whose memory footprint or element count is large enough to make operations O(N) and risk blocking the event loop on delete/expire.

  • missing_ttls: share of sampled keys with no expiry -- the classic 'cache fills up and OOMs' setup.

  • eviction_pressure: used/maxmemory ratio, active evictions, and the dangerous noeviction + no-TTL combination that turns a full instance into failed writes.

  • fork_latency_risk: long last-fork time, large dataset + active persistence, and failed background saves -- the causes of periodic latency spikes and durability gaps. Keys are sampled via SCAN (never KEYS), so it is safe on a large production instance; the big-key / missing-TTL findings are over the SAMPLE, not the whole keyspace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sampleSizeNoHow many keys to SCAN-sample for big-key / missing-TTL checks (default 200, 0 to skip key sampling).
bigKeyBytesNoFlag a key at or above this many bytes (default 1 MiB = 1048576).
usedPctWarnNoWarn when used/maxmemory reaches this ratio (default 0.8 = 80%).
forkUsecWarnNoWarn when the last fork took at least this many microseconds (default 100000 = 100ms).
bigKeyElementsNoFlag a collection with at least this many elements (default 5000).
largeDatasetBytesNoTreat the dataset as large (fork-risk) at or above this many bytes (default 1 GiB = 1073741824).
missingTtlFractionNoFlag when this fraction of the sample lacks a TTL (default 0.5 = 50%).
Behavior5/5

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

Annotations already indicate readOnly, idempotent, non-destructive behavior. The description adds significant behavioral context beyond annotations: it explains the sampling method (SCAN), the four categories (big_keys, missing_ttls, eviction_pressure, fork_latency_risk), and the thresholds used. It also clarifies that findings are over the sample, not the whole keyspace. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, well-structured paragraph that front-loads the core purpose and then lists the four categories with clear explanations. Every sentence adds value, and there is no redundant or filler text. It is appropriately sized for the tool's complexity.

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?

Given the 7 parameters (all with defaults and descriptions in schema) and no output schema, the description provides a complete picture: it explains what the tool returns (four categories with severity and fixes), how it works (sampling), and safety considerations. It covers all essential aspects for an agent to understand and use the tool correctly.

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%, so the baseline is 3. The description does not re-explain each parameter but provides high-level mapping between parameters and categories (e.g., sampleSize affects key sampling). This adds some context but does not significantly enhance understanding beyond the schema's own 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?

The description clearly states the tool's purpose as a 'Rolled-up Redis health lint pass' that returns four categories of findings with severity and actionable fixes. It uses specific verbs ('returns') and resource ('health lint findings'), and distinguishes itself from sibling tools like redis_scan or redis_key_info by providing a comprehensive health assessment in one call.

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 provides explicit context for safe usage: 'Keys are sampled via SCAN (never KEYS), so it is safe on a large production instance.' It implies comprehensiveness but does not explicitly state when not to use it or name alternatives. The sibling tools suggest more specific purposes, but the description itself lacks explicit guidelines.

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