Skip to main content
Glama
YawLabs

redis-mcp

by YawLabs

redis_slowlog

Read-onlyIdempotent

Retrieve recent Redis slow log entries to identify commands that exceed the latency threshold, showing execution time and client details.

Instructions

Recent entries from the Redis slow log -- commands that took longer than slowlog-log-slower-than microseconds (default 10000 = 10ms). Each entry has the command, execution time in microseconds, a unix timestamp, and the client address/name (Redis 4+). The fastest way to find which specific commands are slow. Read-only (SLOWLOG GET); SLOWLOG RESET would need ALLOW_WRITES and is intentionally not exposed here.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax slowlog entries to return (default 20).
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false. The description adds value by explaining the data source (slowlog), configuration (slowlog-log-slower-than), and that reset is not exposed. 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?

Three sentences, each informative. Front-loaded with the core purpose. Every sentence earns its place with no redundancy.

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 explains the fields of each entry. Covers the configuration, why to use it, and what is not exposed. Complete for a simple tool with one parameter.

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?

Input schema has one parameter (limit) with full description, default, min, max. The description does not add meaning beyond the schema but provides context about the log content. Schema coverage is 100%, baseline 3.

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 it returns recent entries from the Redis slow log, specifying fields (command, execution time, timestamp, client address). It distinguishes itself from other tools by claiming it's the fastest way to find specific slow commands.

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?

Explicitly says it's the fastest way to find slow commands, implying its primary use case. Mentions that SLOWLOG RESET is intentionally not exposed, indicating a limitation. However, it does not compare to sibling tools like redis_advisor or redis_command.

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