Skip to main content
Glama

Hot Cache Status

hot_cache_status

Displays current hot cache contents, rankings, and hit/miss/eviction/promotion metrics so you can monitor cache effectiveness and diagnose memory performance.

Instructions

Show current hot cache contents, stats, and observability metrics.

Returns items sorted by hot_score (highest first), along with:

  • metrics.hits: Times hot cache resource was read with content

  • metrics.misses: Times hot cache resource was empty

  • metrics.evictions: Items removed to make space for new ones

  • metrics.promotions: Items added to hot cache

  • effectiveness: Value metrics (hit rate, tool calls saved, most/least used)

  • avg_hot_score: Average hot score of items (for LRU ranking)

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": "hot_cache_status"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
itemsYes
metricsYesMetrics for hot cache observability.
max_itemsYes
pinned_countYes
avg_hot_scoreYes
current_countYes
effectivenessYesEffectiveness metrics showing hot cache value.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

B3.4/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 burden. It does disclose useful behavior about the result set — items sorted by hot_score descending, and precise definitions for hits, misses, evictions, and promotions. However, it never states whether reading affects the counters (a self-observing status call could bump hits/misses) or confirms that the operation has no side effects.

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

Conciseness4/5

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

The first sentence front-loads the purpose, and the bulleted metric glossary is scannable. The bullets partially restate what an output schema would already expose, but the semantic definitions of the counters earn their space.

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 status tool with an output schema present, the description is essentially complete: it names the contents, sort order, counters, effectiveness block, and avg_hot_score. The only missing piece is whether the call is a pure read or mutates the counters it reports.

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 nothing for the description to disambiguate; the baseline of 4 applies. No parameter-related gaps exist.

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?

States a specific verb and resource: 'Show current hot cache contents, stats, and observability metrics.' An agent can immediately tell this is an inspection/status tool for the hot cache. It does not explicitly differentiate itself from the sibling memory_stats, which is the closest potential source of confusion.

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 when-to-use or when-not-to-use guidance at all. Nothing says whether to call this before promoting/demoting items or how it relates to memory_stats. Usage is only inferable from the word 'Show'.

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