Skip to main content
Glama
MCP Docs Scraper
by kwiscion

Clear Cache

clear_cache

Removes cached documentation entries by specific docs ID or clears the entire cache when all is true, returning cleared IDs and remaining count.

Instructions

Remove cached documentation. Use docs_id for specific entry, or all:true to clear everything. Returns cleared IDs and remaining count.

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
allNoClear all cached docs
docs_idNoSpecific docs ID to clear (e.g., 'colinhacks_zod')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden: it does disclose the return shape (cleared IDs and remaining count), which is valuable since there is no output schema. However, it never states that the operation is destructive/irreversible, what happens to dependent indexes, or whether cleared docs must be re-indexed before use again.

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?

Three short sentences, front-loaded with the action and followed by mode selection and the return payload; nothing is redundant. It could be slightly tighter, but every sentence contributes.

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 two-optional-parameter tool the description covers purpose, modes, and return values adequately given the absence of an output schema. It still leaves open the consequences of clearing (re-indexing needs, reversibility), which matters for a destructive cache operation with no 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 schema already describes both properties, so the baseline is 3. The description reinforces the mutual exclusivity of docs_id and all:true but adds no format details, defaults, or interaction rules beyond what the schema already provides.

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?

"Remove cached documentation" is a specific verb+resource pair that clearly separates this from read-only siblings like list_cached_docs and get_docs_content. It does not explicitly name an alternative, but the destructive-cache semantics are unambiguous.

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?

The description explains the two invocation modes (single docs_id versus all:true), which is genuine selection guidance for parameters. It never says when an agent should clear the cache versus re-index or leave it alone, and gives no prerequisites or caution about clearing everything.

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