Skip to main content
Glama
YawLabs

redis-mcp

by YawLabs

redis_get

Read-onlyIdempotent

Retrieve a Redis key's value, automatically shaping the response by its data type (string, hash, list, set, sorted set, or stream) with configurable limits for collections.

Instructions

Read a key's value, dispatching by type so you get the right shape without knowing the type in advance: string -> the value (byte-windowed at REDIS_MAX_VALUE_BYTES, default 256 KiB, with truncated + full length when capped); hash -> field/value object; list -> array (LRANGE windowed by limit); set -> member array; zset -> [member, score] pairs (ZRANGE WITHSCORES, windowed); stream -> recent entries (XREVRANGE, windowed). Collection reads are capped at limit (default REDIS_MAX_KEYS) so a million-element list can't blow out context. Always read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesThe key to read.
limitNoMax elements to return for collection types (default REDIS_MAX_KEYS=1000).
Behavior5/5

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

Annotations already provide readOnlyHint, openWorldHint, etc. The description adds critical behavioral details: byte-windowing at REDIS_MAX_VALUE_BYTES, truncation indication, collection caps with limit defaults, and type-specific shape mentions. No contradiction with annotations.

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 sentence that front-loads the purpose. It is slightly verbose due to listing all types, but each part earns its place. Could be more concise.

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 fully covers return shapes for all types, edge cases (truncation, defaults), and safety (read-only). Context signals show simple parameters, and the description handles the complexity well.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%. The description adds meaning to 'limit' (default REDIS_MAX_KEYS=1000, windowing) and explains how 'key' is used without extra detail. It enriches the schema's minimal 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 reads a key's value and dispatches by type. It distinguishes from siblings like redis_scan (scan keys) and redis_key_info (key info) by specifying type-aware reading.

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 implies usage for reading any key's value without knowing the type, and notes it's always read-only. It does not explicitly list when not to use or compare to siblings, but the context is clear.

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