Skip to main content
Glama

read_styles

Read-only

List a Figma file's variables, styles, and components with keys before implementing or editing to reuse design tokens and get component keys for creation.

Instructions

List a file's design tokens: local variables per collection with a value per mode, Figma styles (colors, text, effects, grids) with their values, and components and component sets with keys. Use it before implementing or editing, to reuse tokens and to get a componentKey for write_create; for the styles of one node, use read_structure. Variables need the kit bridge plugin in the file: without it the answer says so and lists the rest.

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": {
      "file": "<file>"
    },
    "name": "read_styles"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesFigma file URL or key
offsetNoFrom a [more: …] footer

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/non-destructive/openWorld, so safety is covered; the description adds real behavioral context beyond that by disclosing the kit bridge plugin prerequisite and the graceful-degradation behavior ('without it the answer says so and lists the rest'). It does not discuss result size, rate limits, or pagination mechanics, which are only hinted at by the schema's offset field.

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?

Three sentences, each carrying distinct load: what is returned, when to call it plus the alternative, and the plugin caveat. The highest-value content (contents and usage) is front-loaded, and the fallback caveat is correctly placed last.

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?

With no output schema, the description carries the return-shape burden and does so by naming each token category and the mode dimension. The only gap is pagination and result-size expectations, which are left implicit in the schema's offset parameter rather than explained.

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 both parameters are already documented; the description's 'list a file's ...' reinforces which file is targeted but adds nothing about offset or the '[more: …]' footer convention. Slightly above baseline because the token-scoping language clarifies what the file argument yields, but the schema still does the heavy lifting.

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?

States a specific verb (list) and resource (a file's design tokens) and enumerates the contents precisely: local variables per collection per mode, Figma styles by type, and components/component sets with keys. It also explicitly contrasts itself with read_structure, so an agent can distinguish it from a sibling without opening any 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?

Gives an explicit trigger ('before implementing or editing'), names the downstream benefit ('get a componentKey for write_create'), and routes the agent elsewhere for the other case ('for the styles of one node, use read_structure'). When, why, and the alternative are all covered.

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