Skip to main content
Glama
liliangshan

mcp-server-redis

by liliangshan

set_ttl

Set a Redis key's time to live in seconds to control expiration. Specify the key and TTL duration to automatically remove data after the defined period.

Instructions

Set time to live for a key

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesRedis key to set TTL for
ttlYesTime to live in seconds
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It only states the action, without explaining side effects like overwriting an existing TTL, whether the TTL must be positive, or error conditions. This is insufficient for a mutating 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?

The description is a single, concise sentence with no irrelevant information. It is appropriately sized for the simple operation it describes.

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

Completeness2/5

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

For a state-changing tool with no annotations and no output schema, the description is under-specified. It lacks context about side effects, success/failure behavior, or how TTL interacts with existing key data. More behavioral context is needed for an agent to use it safely.

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%, with both parameters (key and ttl) having clear descriptions. The tool description itself adds no additional parameter semantics beyond what the schema already provides, so baseline 3 applies.

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 uses a specific verb ('Set') and resource ('time to live for a key'), clearly stating the tool's function. It is unambiguous and distinct from sibling tools like remove_ttl or get_key_info, though it doesn't explicitly differentiate them.

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?

The description gives no explicit guidance on when to use this tool versus alternatives. There is no mention of prerequisites, alternatives, or exclusion criteria. The usage is implied only by the tool's name and basic description.

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

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