Skip to main content
Glama
minivv

Redis MCP Server

set_string

Set a string value in Redis and optionally assign a time-to-live (TTL) in seconds for automatic expiration.

Instructions

Set the value of a string key. Optionally set expiration.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes
ttlNoExpiration in seconds (optional)
valueYes
Behavior3/5

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

Without annotations, the description should disclose more about behavior. It mentions setting a value and optional expiration but does not state if it overwrites existing keys or fails on non-string types. Minimal but adequate for a simple operation.

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?

Extremely concise: one sentence without unnecessary words. Front-loaded and efficient.

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

Completeness4/5

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

For a simple set operation with optional TTL, the description is mostly complete. It lacks mention of behavior on existing keys or response format, but given no output schema and sibling tools, it is sufficient.

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 only 33% (only ttl described). The description adds context for key and value as string key and value, but does not explain format or constraints. Baseline 3 due to low coverage, but the description only partially compensates.

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 verb 'Set' and the resource 'string key', with an optional expiration. It distinguishes well from sibling tools like set_hash or add_set.

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

Usage Guidelines2/5

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

No guidance on when to use this tool vs alternatives (e.g., when to use set_hash or push_list). The description implicitly suggests it's for string keys but provides no explicit selection criteria.

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

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