Skip to main content
Glama
Nam088

mcp-server-db

by Nam088

redis_lrange

Retrieves a range of elements from a Redis list. Use start and stop indices to specify the range; capped at 1000 elements.

Instructions

Get a range of elements from a list. Capped at 1000 elements; result is truncated=true with a total count if there are more.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes
stopYesStop index (0-based, inclusive, or -1 for end)
startYesStart index (0-based)
connectionIdNoId of the redis connection to use, from databases.config.yml. Optional when only one redis connection is configured.
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses two key behaviors: a cap of 1000 elements and a truncated flag with total count. However, it omits other traits like read-only nature, return format, or error cases. The disclosure is helpful but incomplete.

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 extremely concise with two sentences. It front-loads the core purpose and immediately provides the key constraint (cap and truncation). No extraneous words.

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 list retrieval tool with no output schema, the description adequately covers the operation and important constraints. It implies the return of elements but does not explicitly state the return type (list of values). The cap and truncation details add necessary context. Given the tool's simplicity, this is mostly complete.

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 high (75%), so baseline is 3. The description adds no additional parameter meaning beyond the schema, which already describes start, stop, and connectionId. The key parameter lacks a schema description and is not elaborated in the description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb 'Get' and resource 'range of elements from a list', clearly stating the operation. It distinguishes itself from sibling tools like redis_lpush, redis_lpop, etc., though it does not explicitly differentiate from other list read operations.

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 is provided on when to use this tool versus alternatives (e.g., redis_llen, redis_lpop). The description lacks context about prerequisites or explicit conditions for use.

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