Skip to main content
Glama

Get Response Cache Statistics

lidl_cache_stats
Read-only

Reports process-scoped in-memory response cache metrics—enabled state, scope, hits, misses, hit rate, stored entries, and evictions—to help diagnose caching behavior.

Instructions

Report the process-scoped in-memory response cache: enabled state, scope, hits, misses, hit rate, stored entries, and evictions.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
hitsYes
noteNo
setsYes
scopeYes
missesYes
enabledYes
entriesYes
hitRateYes
evictionsYes
maxEntriesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds genuinely new behavioral context by saying the cache is 'process-scoped' and 'in-memory', which tells an agent the figures are per-process and ephemeral rather than a shared or persisted store. It stops short of saying whether counters are cumulative since start or reset, which would have been the final piece.

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?

One sentence, front-loaded with the resource and scope, followed by a compact list of the reported metrics. Nothing is padded and no clause is redundant.

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?

An output schema exists, so the enumerated metrics are partly redundant, but the description's real contribution — the process-scoped, in-memory framing — is the piece the schema cannot convey. For a zero-parameter read-only stats call, this is close to complete; only the counter time window is unstated.

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; baseline 4 applies. No misleading parameter language is present.

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?

States a specific verb ('Report') and a specific resource ('process-scoped in-memory response cache'), then enumerates exactly which metrics come back. This is unmistakably a diagnostics tool, cleanly separable from every sibling, which is a shopping/loyalty data accessor.

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 name and description imply usage (inspecting cache health/performance), but there is no explicit statement of when an agent should call this versus doing something else, and no prerequisites or exclusions are given. With no close sibling to disambiguate against, the implied guidance is adequate rather than strong.

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