Skip to main content
Glama
yhoyoex

OpenCode Figma MCP

by yhoyoex

swap_instance

Replace an instance's main component while preserving overrides where possible, enabling Figma design updates without losing custom edits.

Instructions

Swap the main component of an instance, preserving overrides where possible

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instanceIdYesID of the INSTANCE node
componentIdYesID of the new main COMPONENT

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose one meaningful behavioral trait — overrides are preserved "where possible" — which hints at partial data loss. However, it says nothing about reversibility, permission requirements, or what happens when overrides cannot be preserved.

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, front-loaded sentence with zero filler. The key constraint (override preservation) is included without bloating the text.

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 an unannotated mutation tool with no output schema, the description is minimally adequate: it names the operation and one behavioral nuance but omits failure modes, reversibility, and what "where possible" concretely means. More disclosure is needed given the lack of annotations.

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 description coverage is 100% and both parameters (instanceId, componentId) are documented in the schema. The description adds no syntax, format, or constraint details beyond what the schema already provides, so baseline 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?

States a specific verb ("Swap") and resource ("the main component of an instance"), making it clearly distinct from siblings like create_component_instance or set_instance_overrides. No explicit naming of alternatives, so not 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 Guidelines2/5

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

No when-to-use guidance, prerequisites, or alternatives are given. The agent must infer from the name and schema that this is the tool for changing an instance's main component. "Preserving overrides where possible" is context about behavior, not usage routing.

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