Skip to main content
Glama
figma-mcp
by svv2014

get_figma_file

Fetches a Figma file by key when it is under 200KB; use metadata, structure, or JSON export tools for larger files.

Instructions

Get a Figma file by its key (⚠️ LIMITED: Only works for files under 200KB. For larger files, use get_figma_file_metadata, get_figma_file_structure, or save_figma_file_to_json)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "fileKey": "<fileKey>"
    },
    "name": "get_figma_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileKeyYesThe Figma file key (⚠️ Will fail for files larger than 200KB)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations present, the description carries the full behavioral burden, and it does disclose one meaningful trait: a hard failure threshold at 200KB rather than silent truncation. It does not say what the response contains, whether access scopes or permissions are required, or what the failure looks like to the caller, so the disclosure is real but thin.

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 with the limiting constraint front-loaded in a bracketed warning and the alternatives immediately after. Every clause earns its place and nothing is padded.

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?

There is no output schema, so the description was the only place to explain what the returned file data looks like, and it does not. The size limit and fallback routing make it usable, but an agent cannot tell what a successful call yields before invoking it.

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 coverage is 100% and there is only one parameter, so the schema already defines fileKey fully. The description echoes the 200KB failure condition, adding slight value about consequence but no new meaning about the parameter's format or where a key comes from (e.g., a Figma file URL).

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 pairs a specific verb and resource ("Get a Figma file by its key") and names the sibling alternatives to use when the size constraint blocks it, so an agent can separate it from get_figma_file_metadata or get_figma_file_structure. What it omits is what "the file" actually is on return (raw document JSON vs. nodes), which keeps it short of a 5.

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

Usage Guidelines4/5

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

It states an explicit operating condition (files under 200KB) and a fallback routing set for the case it doesn't cover, which is more than most definitions give. There is no guidance on choosing between this and siblings like get_figma_file_info or get_figma_file_nodes for files that are under the limit.

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