Skip to main content
Glama
figma-mcp
by ivn4k

Local styles

get_styles
Read-only

Retrieve local paint, text, effect, and grid styles from an open Figma file—including IDs, names, keys, and values—so AI agents can inspect and reuse design styles.

Instructions

Local paint, text, effect and grid styles of the file (id, name, key and values).

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe read, and with zero parameters there are no mutation or pagination risks to disclose. The description adds useful scope detail ('local', i.e. not shared/library styles) and names the returned fields, but says nothing about ordering, size, or how nested style values are shaped.

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 front-loaded sentence that identifies the resource and its variants before listing return fields. No redundant restatement of the title; 'values' is the only slightly vague term.

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 zero-parameter read with a readOnly annotation and no output schema, the description supplies enough: it enumerates the four style categories and the returned identifiers (id, name, key, values). The only gap is that the structure of 'values' per style type is never described.

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?

The tool takes no parameters, so there is nothing for the description to disambiguate beyond what the empty schema conveys. Baseline 4 would apply, but the description spends its parameter budget on return fields instead, which is covered under contextual completeness.

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?

Names a specific resource (local paint, text, effect and grid styles) and the scope ('of the file'), so an agent knows exactly what comes back. It does not differentiate itself from nearby siblings such as get_components or get_variables, which deal with other node/asset collections.

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?

Usage is only implied: the word 'local' hints at current-file scope versus library assets, and 'of the file' anchors it to the active document (presumably after select_file). There is no explicit when-to-use or when-to-prefer-a-sibling statement.

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