Skip to main content
Glama

cache-stats

Monitor and retrieve cache statistics for cryptocurrency exchange data, enabling efficient tracking and analysis of cache performance in the CCXT integration environment.

Instructions

Get CCXT cache statistics

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Inline handler function for the 'cache-stats' tool. It calls getCacheStats() and returns the statistics as formatted JSON text in the MCP response format.
    server.tool("cache-stats", "Get CCXT cache statistics", {}, async () => {
      return {
        content: [{
          type: "text",
          text: JSON.stringify(getCacheStats(), null, 2)
        }]
      };
    });
  • Core implementation of cache statistics retrieval. Returns detailed metrics including hit/miss counts and ratio, current cache size, maximum size, and last clear timestamp.
    export function getCacheStats() {
      return {
        hits: cacheStats.hits,
        misses: cacheStats.misses,
        hitRatio: cacheStats.hits + cacheStats.misses > 0 
          ? (cacheStats.hits / (cacheStats.hits + cacheStats.misses)).toFixed(2) 
          : '0.00',
        size: dataCache.size,
        maxSize: dataCache.max,
        lastCleared: cacheStats.lastCleared
      };
    }
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. While 'Get' implies a read operation, it doesn't specify what statistics are returned, format, whether it requires authentication, or any performance/rate limit considerations. The description is too minimal for a tool that presumably returns system metrics.

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, efficient sentence with no wasted words. It's appropriately sized for a simple tool and front-loads the essential information immediately.

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 statistics retrieval tool with no annotations and no output schema, the description is insufficient. It doesn't explain what statistics are returned, their format, or any behavioral aspects. The description should provide more context about what 'cache statistics' encompasses given the lack of structured output documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has zero parameters with 100% schema description coverage, so the baseline is 4. The description doesn't need to compensate for any parameter documentation gaps, though it also doesn't add any parameter-specific information beyond what the empty schema already indicates.

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 'Get CCXT cache statistics' clearly states the verb ('Get') and resource ('CCXT cache statistics'), making the purpose immediately understandable. However, it doesn't differentiate from sibling tools like 'clear-cache' or 'clear-exchange-cache', which would require explicit comparison to achieve a perfect score.

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 provides no guidance on when to use this tool versus alternatives. There's no mention of prerequisites, timing considerations, or how it differs from related cache operations like 'clear-cache' or 'clear-exchange-cache' in the sibling list.

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

Related 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/doggybee/mcp-server-ccxt'

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