Skip to main content
Glama
Figma Cache Design MCP

Figma Cache Design MCP

by Sasha-Zayets

get_block

Fetches compact CSS-like design descriptions and aggregated tokens for Figma blocks, checking local cache first and calling the Figma API only on cache miss or refresh.

Instructions

Returns a compact CSS-like description and aggregated design tokens for a block (or both desktop and mobile versions). Checks local disk cache first (including previously cached parent pages or sections) and calls Figma API only on cache miss or when refresh=true. Provide at least one of: desktop, mobile, url, or urls.

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

Input Schema

NameRequiredDescriptionDefault
urlNoSingle Figma link with node-id without a specific viewport label
urlsNoMultiple Figma links with node-id (whole pages, sections, or individual blocks)
mobileNoFigma link to the mobile version (page or block) with node-id
desktopNoFigma link to the desktop version (page or block) with node-id
refreshNoForce refresh from Figma API instead of reading from local cache

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden and does well: it reveals the local disk cache lookup, that previously cached parent pages or sections are consulted, and that the Figma API is hit only on a cache miss or refresh=true. It omits auth/token requirements, rate limits, and whether a cache miss itself populates the cache, which keeps it short of a 5.

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 sentences, front-loaded with the return value, then cache behavior, then the parameter constraint. No filler. The parenthetical about previously cached parent pages is dense but carries real information.

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?

There is no output schema, so the description correctly characterizes the return payload as a compact CSS-like description plus aggregated design tokens. For a five-parameter read tool with no annotations, the caching and input-requirement coverage is nearly sufficient; only error behavior and cache-write side effects are left unstated.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds a constraint the schema does not express: required=0 means an empty call is schema-valid, yet the description states at least one of desktop, mobile, url, or urls must be supplied. That is genuine added meaning above the schema.

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: 'Returns a compact CSS-like description and aggregated design tokens for a block,' and adds the desktop/mobile scope. An agent knows exactly what comes back. It does not name or differentiate itself from siblings such as get_outline, though the cache siblings are obviously different tools.

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?

It gives an invocation constraint ('Provide at least one of: desktop, mobile, url, or urls') and explains the cache-first path, which implicitly tells the agent when a network call happens. It never says when to prefer this over get_outline or when a caller should force refresh instead of accepting the cached result.

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