Skip to main content
Glama
cachly-dev

Cachly — AI Cognitive Brain

cache_stats

Retrieve real-time cache instance stats: memory, hit/miss rate, commands/sec, clients, keyspace, and uptime. Use for monitoring, capacity planning, or debugging performance.

Instructions

Get real-time stats for a cache instance: memory usage, hit/miss rate, commands/sec, connected clients, keyspace info, and uptime. Read-only — no side effects. The instance_id identifies the target instance (obtain from list_instances). Use this for monitoring, capacity planning, or debugging performance issues — not for reading cached values (use cache_get for that). Use cache_exists or cache_ttl if you only need key-level information.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instance_idYesUUID of the cache instance (from list_instances)
Behavior4/5

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

Without annotations, the description states 'Read-only — no side effects' which is a clear behavioral trait. It doesn't cover error handling or response format, but for a read-only stats tool, this is adequate.

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?

Four short sentences, each providing distinct value: purpose, read-only nature, parameter source, and usage boundaries. No unnecessary words.

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?

Given the simple tool (one parameter, read-only stats), the description covers purpose, parameter, usage guidance, and alternatives. It lists the stats returned, compensating for lack of output schema.

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 single parameter instance_id is adequately described in both schema and description. The description says 'identifies the target instance (obtain from list_instances)', which matches the schema description. With 100% schema coverage, the description adds little new meaning.

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 states it 'get real-time stats for a cache instance' listing specific metrics like memory usage, hit/miss rate, commands/sec, etc. It distinguishes from siblings like cache_get, cache_exists, and cache_ttl by explicitly saying it's not for reading cached values or key-level information.

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

Usage Guidelines5/5

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

It says to use for monitoring, capacity planning, or debugging performance issues, and not for reading cached values (use cache_get) or key-level info (use cache_exists or cache_ttl). It also tells how to obtain the instance_id from list_instances.

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/cachly-dev/cachly-mcp'

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