Skip to main content
Glama
Nam088

mcp-server-db

by Nam088

redis_keys

List Redis keys matching a glob pattern, capped at 1000 results, with truncation indicator.

Instructions

List Redis keys matching a glob pattern (e.g. 'user:*'). Capped at 1000 keys; result is truncated=true with a total count if there are more.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
patternYes
connectionIdNoId of the redis connection to use, from databases.config.yml. Optional when only one redis connection is configured.
Behavior5/5

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

With no annotations, the description fully covers behavior: capped at 1000 keys, returns truncated=true and total count if more. This is crucial for an agent to understand limits.

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?

Two sentences, no fluff. Front-loaded with purpose, then behavior. Every sentence earns its place.

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?

The description explains truncation and total count, which is good for a list tool without output schema. Could mention return format (list of strings) but not critical.

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?

The description provides an example for the 'pattern' parameter, which lacks a schema description, but does not explain the format fully. The 'connectionId' parameter is already described in the schema. Schema coverage is 50%, so the description adds some value.

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 'List Redis keys matching a glob pattern', with an example pattern. This distinguishes it from sibling tools that get values, check existence, or modify keys.

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

Usage Guidelines3/5

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

The context is clear for listing keys by pattern, but there is no explicit guidance on when to use this versus alternatives like redis_exists or redis_type, or performance considerations for large datasets.

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/Nam088/mcp-database-server-v2'

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