Skip to main content
Glama
Talk to Figma MCP

Talk to Figma MCP

by thanatusdev

get_all_fonts

Extract all fonts used in a Figma node and its children to audit typography and identify every typeface in the design.

Instructions

Extract all fonts used in a node and its children (for typography audit)

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": {
      "nodeId": "<nodeId>"
    },
    "name": "get_all_fonts"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeIdYesThe ID of the node to analyze

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 carries the full burden. It does disclose the important behavioral trait that traversal is recursive ("and its children"), which is real value beyond structured fields. It omits whether the call is strictly read-only, whether results are deduplicated across the subtree, and how large trees affect the response.

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 resource and scope front-loaded and no filler. Nothing could be removed without losing meaning.

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 one-parameter read tool this is close to sufficient, and no output schema exists so return values need not be spelled out. Still, an agent cannot tell what a "font" entry contains (family, style, weight, node references) or whether duplicates are collapsed, which matters for a typography audit.

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%, so nodeId is already documented as "The ID of the node to analyze," giving a baseline of 3. The description adds that the subtree beneath that node is included, which clarifies the effective scope of the parameter but is a modest addition rather than deep semantic detail.

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?

"Extract all fonts used in a node and its children" gives a specific verb (extract) and a specific resource (fonts), and the resource itself separates it from siblings like get_all_colors or get_styles. It stops short of an explicit sibling-differentiation sentence, so it lands at clear-but-not-exemplary.

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?

The parenthetical "(for typography audit)" implies the intended scenario, which is more than nothing. However, there is no statement of when to prefer this over get_styles or read_my_design, and no exclusions or prerequisites are given.

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