Skip to main content
Glama
OpenFigma MCP

OpenFigma MCP

by Shivam990q

design_checkpoint_diff

Computes a structural AST diff between two design checkpoints, listing added, modified, and removed nodes to track changes between snapshots.

Instructions

Computes structural AST diff between two design checkpoints (added, modified, removed nodes).

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": {
      "baseCheckpointId": "<baseCheckpointId>",
      "targetCheckpointId": "<targetCheckpointId>"
    },
    "name": "design_checkpoint_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseCheckpointIdYesBase snapshot ID
targetCheckpointIdYesTarget snapshot ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/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 usefully discloses that the result is a structural comparison broken into added/modified/removed nodes, which implies a side-effect-free read, but it says nothing about error behavior for invalid or mismatched checkpoint IDs, or the shape and size of what comes back.

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 well-formed, front-loaded sentence with no filler; the core operation and its output categories come first. It is efficient, though for a tool with no annotations it is arguably too lean rather than too wordy.

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?

With no annotations and no output schema, the description must stand alone, and it only partially does: the return value is described as three node categories but no fields, nesting, or stable identifiers are indicated. For a read-only two-parameter diff this is workable but leaves the agent guessing about the response shape.

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%, so both parameters are already documented in structured form. The description only implicitly adds the directional semantics — that the diff runs from base to target — without stating what direction added/removed is measured in, which is the one piece of meaning an agent would still want.

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 pairs a specific verb ("Computes structural AST diff") with a clearly scoped resource (two design checkpoints) and even names the diff categories (added, modified, removed nodes). It is easy to distinguish from design_checkpoint_create and design_checkpoint_rollback, which mutate rather than compare, though the description never explicitly points at those siblings.

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?

There is no when-to-use guidance, no mention of prerequisites (both checkpoints must exist and belong to the same design), and no reference to alternatives such as design_checkpoint_rollback. An agent must infer the use case entirely from the verb.

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