Skip to main content
Glama
figjam-context-mcp

figjam-context-mcp

Diff Board Snapshots

diff_board
Read-onlyIdempotent

Compare retained local snapshots of the same board to report node, connector, table-cell, move, resize, and cluster changes. Ingest the board first; then see changes since an earlier snapshot.

Instructions

Compare retained local snapshots of the same board, reporting cluster, node and connector changes. Names each changed node with its section and its old and new text, and each changed table cell with its row and column. Reports moves with their origin and destination sections or pages, identifies resizes, and marks added or removed clusters made up of existing nodes as regrouped. Needs two ingests; when the board did not change in between, it reports no changes since the first. compareTo=1 selects the previous snapshot, 2 selects two states back. No network or LLM calls; ingest_board must capture the current Figma state first.

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": {
      "boardId": "<boardId>"
    },
    "name": "diff_board"
  }
}

Input Schema

NameRequiredDescriptionDefault
boardIdYesThe Figma file key, as returned by ingest_board, or the board URL
compareToNoHow many snapshots back to use as the baseline (1 = the ingest before the latest)

Output Schema

NameRequiredDescriptionDefault
statsYes
boardIdYes
newClustersYes
nodeChangesNoEdited, moved, added, then removed nodes in reading order; read whole texts with get_board_context and nodeIds
summaryTextYesPaste-ready human/LLM-readable change report
removedClustersYes
addedConnectionsYes
currentCreatedAtYesISO timestamp of the latest ingest
ignoredArgumentsNoUnknown input keys that were ignored; their values are not echoed. Absent when none
modifiedClustersYes
tableCellChangesNo
baselineCreatedAtYesISO timestamp of the baseline ingest
currentSnapshotIdNo
baselineSnapshotIdNo
newClustersOmittedNoNew clusters beyond the first 20
nodeChangesOmittedNoChanged nodes beyond the first 100
removedConnectionsYes
removedClustersOmittedNoRemoved clusters beyond the first 20
addedConnectionsOmittedNoAdded connections beyond the first 50
modifiedClustersOmittedNoModified clusters beyond the first 20
tableCellChangesOmittedNoTable cell changes beyond the first 50
removedConnectionsOmittedNoRemoved connections beyond the first 50

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changedv0.13.1
    • addedOutput schema / properties / newClusters / items / properties / regrouped
      Added value: +{
      +  "const": true,
      +  "description": "All members exist in both snapshots",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / nodeChanges / description
      Previous value: -"Edited, added, then removed nodes in reading order; read whole texts with get_board_context and nodeIds"New value: +"Edited, moved, added, then removed nodes in reading order; read whole texts with get_board_context and nodeIds"
    • changedOutput schema / properties / nodeChanges / items / properties / changeType / enum
      Previous value: -[
      -  "added",
      -  "removed",
      -  "edited"
      -]New value: +[
      +  "added",
      +  "removed",
      +  "edited",
      +  "moved"
      +]
    • addedOutput schema / properties / nodeChanges / items / properties / changes / description
      Added value: +"Size means the node was resized; its appearance may also have changed"
    • changedOutput schema / properties / nodeChanges / items / properties / changes / items / enum
      Previous value: -[
      -  "text",
      -  "name",
      -  "image",
      -  "rotation",
      -  "type",
      -  "appearance"
      -]New value: +[
      +  "text",
      +  "name",
      +  "image",
      +  "rotation",
      +  "type",
      +  "appearance",
      +  "size",
      +  "moved"
      +]
    • addedOutput schema / properties / nodeChanges / items / properties / pageId
      Added value: +{
      +  "description": "Destination page ID when the page changes",
      +  "type": "string"
      +}
    • addedOutput schema / properties / nodeChanges / items / properties / previousPageId
      Added value: +{
      +  "description": "Origin page ID when the page changes",
      +  "type": "string"
      +}
    • addedOutput schema / properties / nodeChanges / items / properties / previousSection
      Added value: +{
      +  "description": "Origin section name for a moved node",
      +  "type": "string"
      +}
    • addedOutput schema / properties / nodeChanges / items / properties / previousSectionId
      Added value: +{
      +  "description": "Origin section ID for a moved node",
      +  "type": "string"
      +}
    • addedOutput schema / properties / removedClusters / items / properties / regrouped
      Added value: +{
      +  "const": true,
      +  "description": "All members exist in both snapshots",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / stats / properties / movedNodes
      Added value: +{
      +  "description": "All nodes that changed section or page, including edited nodes",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedOutput schema / properties / stats / required
      Previous value: -[
      -  "addedNodes",
      -  "removedNodes",
      -  "editedNodes",
      -  "newClusters",
      -  "removedClusters",
      -  "modifiedClusters",
      -  "unchangedClusters",
      -  "addedConnections",
      -  "removedConnections"
      -]New value: +[
      +  "addedNodes",
      +  "removedNodes",
      +  "editedNodes",
      +  "movedNodes",
      +  "newClusters",
      +  "removedClusters",
      +  "modifiedClusters",
      +  "unchangedClusters",
      +  "addedConnections",
      +  "removedConnections"
      +]
  2. Changed14 schema fields changedv0.12.0
    • changedInput schema / properties / boardId / description
      Previous value: -"The Figma file key, as returned by ingest_board"New value: +"The Figma file key, as returned by ingest_board, or the board URL"
    • changedInput schema / properties / boardId / maxLength
      Previous value: -128New value: +2048
    • removedInput schema / properties / boardId / pattern
      Removed value: -"^[A-Za-z0-9]+$"
    • addedOutput schema / properties / addedConnectionsOmitted
      Added value: +{
      +  "description": "Added connections beyond the first 50",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / ignoredArguments
      Added value: +{
      +  "description": "Unknown input keys that were ignored; their values are not echoed. Absent when none",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / modifiedClustersOmitted
      Added value: +{
      +  "description": "Modified clusters beyond the first 20",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / newClustersOmitted
      Added value: +{
      +  "description": "New clusters beyond the first 20",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / removedClustersOmitted
      Added value: +{
      +  "description": "Removed clusters beyond the first 20",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / removedConnectionsOmitted
      Added value: +{
      +  "description": "Removed connections beyond the first 50",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / tableCellChanges / items / properties / currentColumn / description
      Added value: +"0-based, as in get_board_context"
    • addedOutput schema / properties / tableCellChanges / items / properties / currentRow / description
      Added value: +"0-based, as in get_board_context"
    • addedOutput schema / properties / tableCellChanges / items / properties / previousColumn / description
      Added value: +"0-based, as in get_board_context"
    • addedOutput schema / properties / tableCellChanges / items / properties / previousRow / description
      Added value: +"0-based, as in get_board_context"
    • addedOutput schema / properties / tableCellChangesOmitted
      Added value: +{
      +  "description": "Table cell changes beyond the first 50",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
  3. Changed3 schema fields changedv0.10.3
    • addedOutput schema / properties / modifiedClusters / items / properties / section
      Added value: +{
      +  "description": "Name of the innermost section around the cluster; absent outside sections",
      +  "type": "string"
      +}
    • addedOutput schema / properties / newClusters / items / properties / section
      Added value: +{
      +  "description": "Name of the innermost section around the cluster; absent outside sections",
      +  "type": "string"
      +}
    • addedOutput schema / properties / removedClusters / items / properties / section
      Added value: +{
      +  "description": "Name of the innermost section around the cluster; absent outside sections",
      +  "type": "string"
      +}
  4. Changed5 schema fields changedv0.10.2
    • addedOutput schema / properties / nodeChanges
      Added value: +{
      +  "description": "Edited, added, then removed nodes in reading order; read whole texts with get_board_context and nodeIds",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "changeType": {
      +        "enum": [
      +          "added",
      +          "removed",
      +          "edited"
      +        ],
      +        "type": "string"
      +      },
      +      "changes": {
      +        "items": {
      +          "enum": [
      +            "text",
      +            "name",
      +            "image",
      +            "rotation",
      +            "type",
      +            "appearance"
      +          ],
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "currentText": {
      +        "description": "Whitespace-collapsed; only the changed part of a long text",
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "nodeType": {
      +        "type": "string"
      +      },
      +      "previousName": {
      +        "type": "string"
      +      },
      +      "previousText": {
      +        "description": "Whitespace-collapsed; only the changed part of a long text",
      +        "type": "string"
      +      },
      +      "section": {
      +        "type": "string"
      +      },
      +      "sectionId": {
      +        "description": "Innermost section; absent outside sections",
      +        "type": "string"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "nodeId",
      +      "changeType",
      +      "nodeType",
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / nodeChangesOmitted
      Added value: +{
      +  "description": "Changed nodes beyond the first 100",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / tableCellChanges / items / properties / columnLabel
      Added value: +{
      +  "description": "Text of the cell in the first row of the column",
      +  "type": "string"
      +}
    • addedOutput schema / properties / tableCellChanges / items / properties / rowLabel
      Added value: +{
      +  "description": "Text of the first cell in the row",
      +  "type": "string"
      +}
    • addedOutput schema / properties / tableCellChanges / items / properties / tableName
      Added value: +{
      +  "type": "string"
      +}
  5. Addedv0.4.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, closed-world, but the description adds substantial behavior beyond them: node names with section and old/new text, table cells with row and column, moves with origin/destination, resize detection, 'regrouped' labeling for added/removed clusters of existing nodes, and the explicit 'No network or LLM calls' guarantee.

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?

Four dense sentences, each front-loading the most important fact (what is compared, what is reported, preconditions, baseline selection). No filler or repeated phrasing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers purpose, prerequisites, baseline control, and change taxonomy for a two-parameter read-only tool with full schema coverage and an output schema. Nothing an agent needs to invoke it correctly is missing.

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 already documents boardId and compareTo with the same '1 = the ingest before the latest' semantics. The description largely restates this ('compareTo=1 selects the previous snapshot, 2 selects two states back'), adding only marginal clarity, so the baseline of 3 applies.

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?

States a specific verb and resource ('Compare retained local snapshots of the same board') plus the exact scope of what it reports (cluster, node, connector changes). An agent can tell this apart from ingest_board or answer_from_board without opening the schema.

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?

Gives clear preconditions and ordering: 'Needs two ingests' and 'ingest_board must capture the current Figma state first', plus the no-change outcome. It does not name any alternative comparison tool or explicitly state when not to use it, so it stops short of full when/when-not coverage.

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