Skip to main content
Glama

cache_tool_effectiveness

Analyze cache performance by retrieving hit rate, cost savings, and TTL recommendations for a named agent cache. Validates cache type and returns metrics to optimize caching strategy.

Instructions

Per-tool hit rate, cost saved, and TTL recommendation for an agent_cache. Errors with INVALID_CACHE_TYPE on semantic_cache.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cache_nameYesCache name as registered in __betterdb:caches (e.g. 'betterdb_scache_prod').
instanceIdNoConnection ID; defaults to the active instance
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 an error case (INVALID_CACHE_TYPE on semantic_cache) and hints at read-only behavior (hit rate, cost saved), but does not explicitly state side-effects or permissions. It adds value beyond the schema but lacks comprehensive behavioral disclosure.

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 sentence plus an error note, containing no fluff. Every word contributes to the tool's understanding, making it concise and well-structured.

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?

Given the tool's simplicity (2 params, no output schema), the description adequately covers purpose and an error condition. It could detail the return format, but the listed outputs (hit rate, cost saved, TTL recommendation) provide sufficient context for use.

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 100%, so the schema already describes both parameters. The description adds minimal extra meaning beyond implying cache_name is the target. Baseline score of 3 is appropriate as description does not significantly enhance parameter understanding.

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 'Per-tool hit rate, cost saved, and TTL recommendation for an agent_cache', which specifies the tool's function and differentiates it from siblings like cache_health or cache_similarity_distribution. The verb 'effectiveness' and the listed outputs give a precise purpose.

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 description implies usage for retrieving effectiveness metrics but does not explicitly state when to use this tool over siblings or exclude scenarios. The error condition provides one constraint, but no when-not or alternative guidance is given.

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/BetterDB-inc/monitor'

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