Skip to main content
Glama

refresh_metadata_cache

Forces an in-memory refresh of normalized Storybook metadata and reports stale fallback details if refresh fails, so component discovery stays grounded in current data.

Instructions

Forces an in-memory refresh of normalized Storybook metadata and reports stale fallback details when refresh fails.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden, and it does add real value: it discloses that the refresh is in-memory (not a persistent write), that failures are non-fatal because a stale fallback is used, and that failure details are surfaced. It doesn't say whether the refresh is global to all metadata, how long it takes, or what the success response contains.

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 sentence that front-loads the action and closes with the failure semantics. Every clause earns its place: 'in-memory' scopes the side effect, and 'stale fallback details' defines the error behavior.

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 zero-parameter, annotation-free tool with no output schema, the description covers the action and failure mode but omits return shape on success and any invocation timing. An agent knows what the call does, but not confidently when to make it.

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 the baseline is 4. The description correctly implies a no-argument, fire-and-refresh operation, leaving no parameter ambiguity to resolve.

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?

States a specific verb and resource: 'Forces an in-memory refresh of normalized Storybook metadata.' This is clearly a maintenance/cache operation, distinct from the read-oriented siblings like list_components and get_design_tokens. It stops short of naming any sibling, but the action is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance at all: it doesn't say whether this should be called after metadata changes, on startup, or only when a prior call reports staleness. The failure clause hints that a stale fallback exists, but the agent is left to infer the trigger condition and any cost of calling it.

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