Skip to main content
Glama
Secil Canary Historian MCP Server

Secil Canary Historian MCP Server

by eins53740

get_cache_stats

Retrieve cache performance statistics—hit rate, size, entry count, evictions, and hits/misses—to monitor historian caching health and diagnose bottlenecks.

Instructions

Get cache statistics.

Story 2.2: Returns cache performance statistics including hit rate, size, and entry count.

Returns: dict[str, Any]: Dictionary containing cache statistics with keys: - success: Boolean indicating if operation succeeded - stats: Cache statistics object

Example: json { "success": true, "stats": { "entry_count": 42, "total_size_mb": 12.5, "max_size_mb": 100, "cache_hits": 150, "cache_misses": 30, "hit_rate_percent": 83.3, "evictions": 5 } }

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_cache_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden; it implies a non-mutating read by listing returned statistics, but never states read-only/idempotent semantics, whether results are cached or live, or any cost. It does provide a concrete example payload, which is useful behavioral evidence beyond the schema, but the example duplicates the declared output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but a large portion of the text is waste: the "Story 2.2" tag is an internal development artifact irrelevant to an agent, and both the "Returns" block and the JSON example restate the already-present output schema. Trimming to the first line plus a short usage note would convey the same information.

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 zero-parameter read of cache statistics with an output schema available, the definition covers what is returned and how it looks, so an agent can call it correctly. The remaining gap is the absence of any routing guidance to sibling diagnostic tools, which is not strictly required for invocation correctness.

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 takes zero parameters, so there is no parameter meaning to add and the baseline of 4 applies. Nothing in the description misleads about inputs, and it correctly implies no arguments are needed.

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 opening line pairs a specific verb (get) with a specific resource (cache statistics), so the agent knows this is a read of cache performance data. It is distinguishable by name and purpose from siblings like cleanup_expired_cache and invalidate_cache, though the description never explicitly contrasts itself with them or with get_metrics/get_health.

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?

There is no statement of when to call this tool versus alternatives such as get_metrics, get_health, or get_metrics_summary, and no preconditions or exclusions. The only context offered is an internal reference ("Story 2.2"), which gives the agent no operational guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.