Skip to main content
Glama
figma-mcp
by ivn4k

Choose active Figma file

select_file

Target a specific open Figma file when the plugin runs across multiple files by connection ID or file name substring, so commands reach the intended document.

Instructions

When the plugin runs in several Figma files, choose which file receives commands (by connectionId from get_status or by file name substring).

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

Input Schema

NameRequiredDescriptionDefault
fileNameNo
connectionIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It does disclose that this changes which file subsequent commands target, which is the key side effect, but it omits failure behavior (unknown connectionId, ambiguous substring match, neither parameter supplied despite 0 required params) and whether the call returns the resolved file.

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 that front-loads the triggering condition and then packs the two selection mechanisms into parenthetical detail. No filler, nothing repeated from the schema.

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 simple two-parameter state selector with no output schema and no annotations, the description covers purpose, trigger, and both identifier forms. It is missing the resolution and error semantics that matter most for a tool that silently redirects all later commands.

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 description coverage is 0%, so the description must compensate, and it does for both parameters: connectionId is sourced from get_status, and fileName is a substring match rather than an exact match. The gap is precedence — it never says what happens when both are provided or when neither is.

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?

The description gives a specific verb and resource: choose which Figma file receives commands. It also names the discriminator inputs (connectionId, file name substring), which distinguishes it from read-only siblings like get_status or get_document. It stops short of explicitly stating which sibling to use instead for listing or inspecting files, so a 4 rather than a 5.

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

Usage Guidelines4/5

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

The opening clause 'When the plugin runs in several Figma files' gives a concrete condition for invoking the tool. It does not state what happens in the single-file case, whether selection is mandatory before other commands, or how to recover if the chosen identifier is ambiguous.

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