Skip to main content
Glama
mcp-ddg-research

mcp-ddg-research

by isyuricunha

cache_clear

DestructiveIdempotent

Clear cached search or fetch data for a namespace (or all) by setting confirm to true. Use it to remove stale results or free storage.

Instructions

Clear one cache namespace, or all namespaces, when confirm is true.

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": {
      "namespace": "<namespace>",
      "confirm": "<confirm>"
    },
    "name": "cache_clear"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmYesMust be true for cache_clear to delete cache files.
namespaceYesCache namespace to clear: search, fetch, or all.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.17.3
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "title": "cache_clearDictOutput",
      +  "type": "object"
      +}
  2. First observedv0.13.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered. The description adds the confirmation gate, telling the agent a confirm flag must be set before deletion occurs, which is genuine behavioral context not present in the annotations.

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

Conciseness5/5

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

A single front-loaded sentence with the action, scope, and gating condition in that order. Nothing is redundant and nothing could be trimmed without losing 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?

With an output schema present, return values need not be explained, and annotations cover destructiveness and idempotency. The description is nearly complete, though it could note whether confirm=false errors or silently no-ops, and whether cleared cache is recoverable.

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%, with both parameters documented including the namespace enum, so the schema does the heavy lifting. The description restates the confirm gate and namespace scope but adds no format or edge-case detail beyond it, making baseline 3 appropriate.

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 description states a specific verb and resource ('Clear one cache namespace, or all namespaces') and scopes the operation precisely. It does not differentiate itself from cache_prune, so an agent cannot tell from the text alone which cache-maintenance tool applies.

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 'when confirm is true' clause gives a precondition for action, which implies usage, but there is no explicit when-to-use guidance or comparison against cache_prune. The agent must infer that clearing is the heavy-handed option versus pruning.

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