Skip to main content
Glama

cache-key-check

Check that a result-cache key contains every input that changes the result, and nothing volatile — Given the inputs of a cached computation (each declared as influencing the output or not, optionally volatile) and the list of inputs the cache key is built from, finds influential inputs missing from the key (stale or wrong hits), volatile inputs inside it (the cache never hits), unknown-influence inputs left out, and, for private results, a missing tenant dimension (cross-tenant leak). When valu

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "inputs": "<inputs>",
      "keyParts": "<keyParts>"
    },
    "name": "cache-key-check"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNoNamespace mixed into the digest.
inputsYes
privateNoThe result is per-tenant or per-user.
keyPartsYesNames of the inputs the key is built from.
tenantInputNoName of the input that identifies the tenant or user; required in the key when private.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are provided, so the description must carry the full behavioral burden. It discloses the specific findings it reports (missing influential inputs, volatile inputs, unknown-influence omissions, tenant-dimension gaps), which is useful. However, it does not state whether the tool is read-only, what permissions are required, or how results are returned, leaving important operational traits unspecified.

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

Conciseness3/5

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

The description is front-loaded with purpose and is information-dense, but it is a single run-on sentence that ends abruptly with 'When valu', indicating truncation. The content earns its place, but the structure and incomplete ending reduce clarity.

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?

This is a five-parameter diagnostic tool with no output schema and no annotations, so the description needs to be thorough. It covers the detection scenarios well but is truncated, does not describe the return format, and omits safety or side-effect information. It is adequate but has clear gaps for the tool's complexity.

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?

Schema coverage is 80%, so the baseline is 3. The description adds meaning beyond the schema by explaining that inputs are declared as influencing the output or not and optionally volatile, and that the key is built from named key parts. It also ties private results to a required tenant dimension, clarifying the relationship between the 'private' and 'tenantInput' parameters.

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?

The description states a specific verb and resource: 'Check that a result-cache key contains every input that changes the result.' It then enumerates the exact defects it detects, making clear this is a cache-key composition validator rather than a cache builder or generic audit. The scope is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear context for use: you supply the cached computation's inputs and the key parts, and it checks for stale hits, never-hitting keys, unknown-influence omissions, and tenant leaks. It does not name alternatives or explicit exclusions, but the intended invocation context is clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources