Skip to main content
Glama

List local styles

figma_get_styles
Read-only

Retrieve paint, text, effect, and grid styles defined in the open Figma file, including keys, values, descriptions, and bound variables. Supports pagination and returns local-only styles.

Instructions

Paint, text, effect and grid styles defined in THIS file, each with its key, a one-line value ("Inter Semi Bold 24/32 -1% upper", "#1a2b3c (var: color/bg)", "drop-shadow 0 4 12 0 #000000 10%", "columns 12, gutter 24, margin 64"), its description and the variables bound inside it — pick a style by what it is, not by its name. Local only: a library-styled file returns count 0; read library styles with figma_get_variable_defs { nodeId } or figma_get_design_context on a screen. Paginated with limit + cursor. Editors: Design; unverified: FigJam, Slides.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoOnly this style type. Omit for all.
limitNoMax styles. Default 500.
cursorNoThe nextCursor of a truncated call, unchanged.
sessionNoOptional sessionId or file name, to pick a Figma file when more than one is connected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare the safe read-only profile, but the description adds material behavior: the scope limit (local file only), the empty-result semantics for library-styled files, the pagination mechanic, and the shape of each returned item (key, one-line value, description, bound variables). That is substantial disclosure beyond the annotations.

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?

Front-loads the resource and scope, then layers return shape, exception handling, pagination and editor support in a compact block with no filler sentences. The four quoted value examples are dense but each illustrates a distinct style type, so they earn their space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the return-value burden and does so (item fields plus concrete value examples). Between the local-only caveat, the library-style fallback route, pagination, and editor coverage, an agent has everything needed to call this correctly and interpret the result.

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 type/limit/cursor/session are already documented, and the description largely restates them ("Paginated with `limit` + `cursor`" repeats the schema's nextCursor wording). The one added nuance, "pick a style by what it is, not by its name," is interpretation guidance rather than parameter semantics, so the baseline 3 holds.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb+resource (list the paint/text/effect/grid styles defined in THIS file) and enumerates the four style types, so an agent knows exactly what is returned. It also differentiates itself from siblings (figma_get_variable_defs, figma_get_design_context, figma_get_local_components) without needing to open either schema.

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

Usage Guidelines5/5

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

States an explicit when-not condition ("Local only: a library-styled file returns count 0") and names the alternative tools to use instead for library styles. It also adds an editor support note ("Editors: Design; unverified: FigJam, Slides"), which is real routing guidance absent anywhere else.

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

Deploy Server

Other Tools