Skip to main content
Glama

Clear Cache

clear_cache
Idempotent

Remove cached Galaxy, collection, and documentation data to fix stale results during long-running sessions.

Instructions

Clear server caches.

Clears Galaxy version/docs-blob caches, standalone-role v1 caches, collection-search and collection-detail caches, doc manifest/page caches, or both. Useful when cached data becomes stale during long-running sessions.

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
scopeNoCache scope to clear: 'galaxy' (version + docs-blob + standalone-role v1 + collection-search results + collection details), 'docs' (doc manifests), or omit to clear all caches.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.13.0
    • changedInput schema / properties / scope / description
      Previous value: -"Cache scope to clear: 'galaxy' (version + docs-blob + standalone-role v1), 'docs' (doc manifests), or omit to clear all caches."New value: +"Cache scope to clear: 'galaxy' (version + docs-blob + standalone-role v1 + collection-search results + collection details), 'docs' (doc manifests), or omit to clear all caches."
  2. Changed1 schema field changedv0.9.0
    • changedInput schema / properties / scope / description
      Previous value: -"Cache scope to clear: 'galaxy' (version + docs-blob), 'docs' (doc manifests), or omit to clear all caches."New value: +"Cache scope to clear: 'galaxy' (version + docs-blob + standalone-role v1), 'docs' (doc manifests), or omit to clear all caches."
  3. First observedv0.7.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare the mutation is idempotent and non-destructive, so the description's main added value is enumerating what actually gets evicted, which it does well. However, it never states that this is a server-wide operation affecting other sessions/users, whether caches repopulate automatically, or what the performance impact of a cold cache is — the context an agent most needs before invoking a global mutation.

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?

Front-loaded with the action and then the enumerated scope, followed by a single usage sentence. The multi-line cache list is somewhat verbose and duplicates the schema's grouping, but nothing is redundant enough to obstruct an agent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation, and the sole parameter is optional and fully documented in the schema. The description covers the one genuinely ambiguous decision (which caches fall under each scope, and that omitting scope clears everything), making the definition sufficient for correct invocation.

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 description coverage is 100% and the single 'scope' parameter already documents its 'galaxy'/'docs'/omit-to-clear-all semantics in full. The description restates the same cache groupings in prose but adds no format, casing, or edge-case detail beyond the schema, so the baseline of 3 applies.

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 opens with a specific verb and resource ("Clear server caches") and then enumerates exactly which caches are in scope: Galaxy version/docs-blob, standalone-role v1, collection-search, collection-detail, and doc manifest/page caches. An agent can tell what the tool operates on without opening the schema. It stops short of 5 because it makes no reference to the sibling doc/search tools, though none of them are true substitutes for cache invalidation.

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?

"Useful when cached data becomes stale during long-running sessions" gives one trigger condition, but there is no guidance on when not to call it, no mention of cost or side effects of an unnecessary clear, and no hint about choosing between a narrow scope and the default full clear. Usage is implied rather than prescribed.

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