Skip to main content
Glama
Figma Local MCP

Figma Local MCP

by ppgee

Get Figma document overview

get_document

Lists all pages with node counts plus local variables, collections, and styles in the open Figma file, so you can map design structure and resources before reading specific nodes.

Instructions

List all pages with node counts and the local resource counts (variables, collections, styles) of the open Figma file.

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_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileKeyNoOptional key of the Figma file to target. Omit to use the most recently active file; see get_plugin_status.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.1

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose the return content (pages, node counts, resource counts) and implies a file must be open/active. It does not state permission requirements, whether it fails when no file is open, or how a missing or invalid fileKey behaves, which are meaningful gaps for an unannotated tool.

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?

A single sentence with no filler, and the most important element (what gets listed) is front-loaded. The parenthetical enumerating variables, collections, and styles is dense but earns its place by defining the resource scope.

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?

For a low-complexity read tool with one optional, fully documented parameter and no output schema, the description adequately conveys the returned shape. It is only slightly short of complete because it omits activation prerequisites and error behavior, which nothing else in the definition covers.

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?

There is a single optional parameter with 100% schema description coverage, so the schema already explains that fileKey targets a file and that omitting it uses the most recently active file via get_plugin_status. The description adds no meaning beyond that, 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 names a specific verb ('List') and a precise resource set: pages with node counts plus local resource counts for variables, collections, and styles in the open Figma file. That scope is distinguishable from siblings like get_variable_defs and get_style_defs, which return definitions rather than counts, though the description never names an alternative to sharpen that boundary.

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 explicit when-to-use or when-not-to-use guidance, and no alternative is named. The only usage signal is implicit in 'the open Figma file', which suggests it is an orientation call, but an agent comparing it against get_design_context, get_selection, or get_plugin_status gets no routing help.

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