Skip to main content
Glama
figma-mcp-v2

figma-mcp-v2

by LukasAnda

Get current selection

figma_get_selection
Read-onlyIdempotent

Returns the layers currently selected in Figma, including IDs you can pass to other tools for editing or inspection.

Instructions

Returns the layers currently selected in Figma (via the plugin), with ids you can pass to the other tools.

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": "figma_get_selection"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoFigma link (or file key) of the file to edit. Needed only when the plugin is open in more than one file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds the useful constraint that the plugin must be running, but does not disclose what happens when the selection is empty (empty list vs. error) or whether selection is a live snapshot. Modest added context beyond annotations.

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?

One compact sentence with the primary fact front-loaded and the bonus chaining hint at the end. No filler, though the parenthetical '(via the plugin)' is slightly awkward mid-sentence.

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 trivial optional-parameter read tool with full annotation coverage, the definition covers what it does and where the result can be used. The only real gap is the empty-selection behavior, which is a minor omission at this complexity level.

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 the single optional 'url' parameter is fully documented in the schema, including the multi-file case. The description adds no meaning beyond that, so the baseline of 3 applies.

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?

Specific verb and resource: 'Returns the layers currently selected in Figma', plus a scoping note that it goes 'via the plugin'. It also signals the output's downstream use ('ids you can pass to the other tools'), which separates it from the file/design reading siblings. It stops short of naming any alternative, but the resource is unambiguous.

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: an agent can infer you call this when the user refers to 'what I have selected'. There is no explicit when-to-use, when-not, or pointer to an alternative such as reading the whole file when nothing is selected.

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