Skip to main content
Glama
Secil Canary Historian MCP Server

Secil Canary Historian MCP Server

by eins53740

cleanup_expired_cache

Removes expired cache entries to free storage space and can be triggered manually when automatic cleanup is not enough.

Instructions

Remove expired entries from cache.

Story 2.2: Cleans up expired cache entries to free storage space. This is done automatically but can be triggered manually.

Returns: dict[str, Any]: Dictionary containing cleanup results with keys: - success: Boolean indicating if operation succeeded - count: Number of expired entries removed

Example: json { "success": true, "count": 8 }

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

Input Schema

NameRequiredDescriptionDefault

No arguments

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, the description carries the full burden; it does disclose the key behavior that only expired entries are removed and that storage is freed, plus the success/count result. It omits whether the operation is idempotent, what permissions it needs, or what happens if the cache is already clean, so the safety profile is only partly covered.

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 sentence is well front-loaded, but the 'Story 2.2' reference is internal noise that gives the agent nothing actionable. The 'Returns' block and JSON example also restate information that an output schema already provides, adding bulk without new meaning.

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 maintenance operation with an output schema present, the description is essentially complete: purpose, automatic-vs-manual context, and result shape are all covered. The remaining gap is the missing differentiation from invalidate_cache, which matters in this sibling set.

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-level confusion is possible.

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 first sentence gives a specific verb and resource: 'Remove expired entries from cache.' It is clearly a mutation scoped to expired entries only, but it never distinguishes itself from the sibling invalidate_cache, leaving the agent to infer the difference between removing expired entries and invalidating entries.

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?

'This is done automatically but can be triggered manually' implies the tool exists for on-demand invocation, which is partial when-to-use guidance. It does not state when an agent should prefer this over invalidate_cache, nor any preconditions or exclusions.

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