Skip to main content
Glama

clear_cache

Purge cached search, fetch, or crawl results to prevent stale data when researching fast-moving topics, ensuring every query returns current information.

Instructions

Purge the search and/or fetch result cache. Useful when researching fast-moving topics where cached results from the past hour may be stale.

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

Input Schema

NameRequiredDescriptionDefault
targetNoWhich cache to clear: search results, fetched pages, crawl manifests, or all (default all)all

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.32.0
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv3.12.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden. 'Purge' signals a destructive mutation, but the description never says whether the removed cache is shared across sessions or per-user, whether the action is reversible, whether it costs anything, or whether subsequent calls will be slower while the cache rebuilds.

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?

Two sentences, action first and rationale second, with no filler. The 'and/or' construction is the one spot of imprecision in an otherwise tight definition.

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 one-optional-parameter tool with full schema coverage and no output schema, the definition covers what it does and when to consider it. It falls short on post-action behavior (does the cache repopulate automatically?) and on scope of impact, which matters for a destructive operation with zero annotations.

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

Parameters3/5

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

Schema coverage is 100% and the single 'target' parameter already has an enum with per-value documentation, so the baseline is 3. The description restates two of the four targets ('search and/or fetch') and omits 'crawl' and 'all', adding no meaning beyond the schema and arguably adding slight ambiguity.

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 verb 'Purge' plus the resource 'search and/or fetch result cache' makes the action unambiguous, and no sibling (search, crawl_site, fetch_url, domain_stats, search_and_fetch, search_and_summarize) does cache maintenance, so it is easily distinguished. The only weakness is that the prose names 'search and/or fetch' while the schema enum also includes 'crawl' and 'all', so the stated scope is narrower than the actual scope.

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?

It gives a concrete triggering condition: use it when researching fast-moving topics where results from the past hour may be stale. It does not state when to avoid clearing (e.g., mid-session cost/latency tradeoffs), but since no sibling offers cache maintenance there is no real alternative to route against.

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