Skip to main content
Glama
OpenFigma MCP

OpenFigma MCP

set_documentation_links

Sets or clears documentation links for Figma components, component sets, variants, and styles by ID; use an empty URI to remove a link and receive per-item results.

Instructions

Set or clear the documentation links of components, component sets, variants and styles, by ID. An empty uri clears the link. Each item reports its own result

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": {
      "links": "<links>"
    },
    "name": "set_documentation_links"
  }
}

Input Schema

NameRequiredDescriptionDefault
linksYesThe links to set, in order

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose two useful traits: empty-string semantics act as a deletion, and results are per-item rather than all-or-nothing ('Each item reports its own result'). It does not say whether setting overwrites an existing link, what happens for an unknown ID, or what permission level is needed—material gaps for an unannotated mutation tool.

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 short sentences, front-loaded with the action and target scope, with the clearing rule immediately after. No filler or redundant phrasing.

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 one-parameter batch mutation with no output schema, the description covers scope, clearing semantics, ordering and per-item result reporting, which is most of what an agent needs. It falls short only on overwrite behavior and required permissions, which an unannotated mutation tool should ideally state.

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 parameter is fully documented in the schema itself, including the empty-string clearing behavior. The description's 'by ID' and 'An empty uri clears the link' largely restate the schema, so the baseline of 3 applies with minimal added meaning.

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 pair (set/clear) and a specific resource (documentation links) plus the exact target scope: components, component sets, variants and styles, addressed by ID. An agent can distinguish this from the adjacent set_annotation and set_text_content tools from the description alone.

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?

The clearing condition is stated explicitly ('An empty uri clears the link'), which is a genuine usage rule, and the batch nature ('The links to set, in order') is implied. However there is no guidance on when to prefer this over other set_* tools or on preconditions such as requiring edit access to the file.

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