Skip to main content
Glama
Figma Cache Design MCP

Figma Cache Design MCP

by Sasha-Zayets

clean_cache

Removes expired Figma design files from the local disk cache based on TTL, or deletes all cached files at once when forced, freeing storage and preventing stale design data from being served.

Instructions

Cleans up expired Figma designs from disk cache based on configured TTL (or forcefully deletes all cached files when force=true).

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

Input Schema

NameRequiredDescriptionDefault
forceNoIf true, forcefully removes cached files regardless of TTL expiration
fileKeyNoOptional Figma fileKey to clean cache for

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A3.5/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. It does disclose the destructive scope ('forcefully deletes all cached files'), which is the most important fact, but says nothing about irreversibility, whether cleanup affects other consumers of the cache, or what is reported back.

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 well-formed sentence with the default behavior front-loaded and the destructive variant in a parenthetical. Zero wasted wording.

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 maintenance tool with no output schema, the description covers the core contract, but with annotations absent it could say more about the destructive nature of force=true and what happens to non-expired entries.

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%, so both parameters are already documented, including that force ignores TTL and fileKey scopes the cleanup. The description echoes the force/TTL relationship but adds no meaning beyond the schema, so the baseline 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?

States a specific verb and resource ('Cleans up expired Figma designs from disk cache') with the TTL basis and the force override spelled out. An agent can tell this is a deletion/maintenance operation distinct from list_cache or cache_design, though no sibling is named explicitly.

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?

Usage is implied: call it when cached entries have passed their configured TTL, or with force=true to bypass TTL. There is no explicit when-not guidance, no mention of how this differs from list_cache, and no stated prerequisites before triggering a destructive sweep.

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