Skip to main content
Glama

monorail_patch

Update text, insert elements into frame containers, or remove elements by node ID to modify Figma slides in place while Auto Layout reflows automatically.

Instructions

Edit, add, or delete elements. Three modes: (1) EDIT: target a TEXT node ID to update its content. (2) ADD: target a FRAME container ID (like 'bullets-container') with action:'add' to create a new element — inherits styling from siblings. (3) DELETE: target any element ID with action:'delete' to remove it. Get IDs from monorail_pull. Auto Layout reflows automatically after add/delete.

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": {
      "patches": "<patches>"
    },
    "name": "monorail_patch"
  }
}

Input Schema

NameRequiredDescriptionDefault
patchesYesThe patch request with changes array

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.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 burden. It does disclose two useful behaviors beyond the schema — added elements inherit styling from siblings, and Auto Layout reflows automatically after add/delete — but it stays silent on reversibility of deletes, permission requirements, and what happens when a target ID is invalid.

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?

Front-loaded verb statement followed by numbered modes, each one sentence, ending with the ID-source pointer and reflow note. No filler, and each sentence adds a distinct fact.

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?

Covers all three operations for a nested-object mutation tool with no output schema, and the mode semantics are complete enough to call correctly. Missing only edge-case behavior (invalid IDs, delete recovery, response content), which keeps it short of a 5.

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%, so the nested fields target, action, position, text, and slide_id are already documented. The description reinforces the mode-to-target mapping and adds a concrete container example ('bullets-container'), but that largely restates what the schema says, so the 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?

Opens with a specific verb set and resource: 'Edit, add, or delete elements', then enumerates three distinct modes. An agent can tell this is a mutation tool for Figma elements, though the description never distinguishes its 'delete' mode from the sibling monorail_delete.

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 explicit per-mode conditions: TEXT node ID for edit, FRAME container ID for add, any element ID for delete, and points to monorail_pull as the source of IDs. The one real gap is that no guidance says when to prefer this tool's delete mode over the monorail_delete sibling.

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