Skip to main content
Glama

locus_cache_stats

Retrieve cache statistics—size, hit rate, hits, and misses—to monitor search cache performance and diagnose retrieval efficiency.

Instructions

Query cache statistics: size, hit rate, hits, misses.

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

Input Schema

NameRequiredDescriptionDefault
store_pathNo.locus

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

B3/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 does signal that this is a non-mutating statistics read and it partially compensates for the absent output schema by naming the returned metrics. It says nothing about behavior when the store path is missing or empty, whether the store is created, or whether results are cumulative vs. per-session.

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?

One front-loaded sentence with no filler; the resource comes first and the returned metrics follow. It is terse but not under-specified to the point of being useless.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-required-parameter read tool with no output schema, naming the four returned metrics is the right kind of compensation. However, the undocumented store_path and the absence of any precondition or error behavior leave real gaps for an agent deciding whether it can call this safely.

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

Parameters2/5

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

The single parameter store_path has 0% schema description coverage and is never mentioned in the description, so its meaning (which cache to report on) must be inferred from the default ".locus" alone. The description adds no semantics beyond the schema.

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 ("Query") and resource ("cache statistics") and enumerates the metrics returned (size, hit rate, hits, misses), so the agent knows exactly what it gets back. It does not explicitly contrast with the near-name siblings locus_clear_cache or locus_kg_stats, leaving differentiation to inference from the names.

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 guidance, no prerequisite (e.g. an existing cache/store), and no mention of the alternative locus_clear_cache or locus_kg_stats. The read-only diagnostic intent is only implied by the word "Query".

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