Skip to main content
Glama
Secil Canary Historian MCP Server

Secil Canary Historian MCP Server

by eins53740

invalidate_cache

Clear cached historian data by key pattern when configuration changes or fresh data is required, returning the number of invalidated entries.

Instructions

Invalidate cache entries matching pattern.

Story 2.2: Clears cached data, optionally filtering by pattern. Use this when configuration changes or fresh data is required.

Args: pattern: SQL LIKE pattern for keys (empty string = invalidate all)

Returns: dict[str, Any]: Dictionary containing invalidation results with keys: - success: Boolean indicating if operation succeeded - count: Number of entries invalidated - pattern: The pattern used (if any)

Example: json { "success": true, "count": 15, "pattern": "search:%" }

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

Input Schema

NameRequiredDescriptionDefault
patternNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden: it does disclose the destructive side effect ("Clears cached data") and the "empty string = invalidate all" blast radius, which are the two things an agent most needs. It omits reversibility, permissions, and whether invalidating a broad pattern is rate-limited or risky, so the safety profile remains incomplete.

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 core behavior is front-loaded in the first sentence, but the text is padded with a sprint artifact ("Story 2.2:") and a full Args/Returns/Example docstring block. The Returns section restates what the output schema already declares, so several lines do not earn their place.

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 one-parameter, low-complexity tool with an output schema present, the description covers trigger, parameter semantics, and blast radius, which is enough to call it correctly. The only meaningful omission is sibling differentiation against cleanup_expired_cache.

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 0%, so the description must compensate and largely does: it names the parameter, identifies the syntax as SQL LIKE, and explains the critical default semantic that an empty string invalidates everything. The only gap is that no concrete example of LIKE wildcard usage is given for the pattern itself.

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 states a specific verb and resource ("Invalidate cache entries") plus the scoping mechanism ("matching pattern"), which is clear enough to distinguish it from read-only siblings like get_cache_stats. It stops short of a 5 because it never contrasts itself with cleanup_expired_cache, the sibling that also removes cached data.

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?

"Use this when configuration changes or fresh data is required" gives a genuine usage trigger, so it is more than implied. However, there is no when-not guidance and no mention of cleanup_expired_cache as the alternative for age-based expiry, leaving the agent to guess which of the two removal tools to pick.

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