Skip to main content
Glama

Adjust an existing board's layout

board_ops
Destructive

Adjust an existing board without regenerating it: align, distribute, move, resize, snap, or auto-layout elements by ID while preserving labels and arrow bindings.

Instructions

Adjust an EXISTING board without regenerating it: align/distribute/move/resize/snap/auto_layout by element ids from read_page. Keeps every element, label and arrow binding, reroutes arrows. Prefer this over update_board for "make it neat", "align", "tidy up" requests. Ops (applied in order): {op:"align",ids,edge:"left"|"centerX"|"right"|"top"|"centerY"|"bottom"} aligns to the first id's edge (or the average for center*); {op:"distribute",ids,axis:"x"|"y",gap?} spaces elements evenly along an axis (or by a fixed gap from the first); {op:"move",ids,dx,dy} shifts elements; {op:"resize",ids,w?,h?} sets a uniform size (bound text is kept fitting); {op:"snap",ids?,grid?=20} rounds x/y/w/h to a grid (all shapes if ids omitted); {op:"auto_layout",direction?="LR"|"TB",colGap?=260,rowGap?=140,ids?} lays a connected graph out in layers by longest path from its sources (unconnected shapes get their own row below; shapes inside a frame are skipped). Requires a write-scoped token.

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": {
      "id": "<id>",
      "ops": "<ops>"
    },
    "name": "board_ops"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesBoard page id
opsYesOperations to apply in order — see the tool description for each op's shape.

Output Schema

NameRequiredDescriptionDefault
summaryYesWhat the operations changed
elementsYesLayout summary of the board after the operations

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations only flag destructiveHint=true and readOnlyHint=false, while the description adds the crucial mitigating context: every element, label, and arrow binding is kept and arrows are rerouted, and ops apply in order. It also discloses the auth prerequisite ('Requires a write-scoped token') and side-effect rules like 'shapes inside a frame are skipped' and 'unconnected shapes get their own row below'. It stops short of stating failure/atomicity behavior, so not a full 5.

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?

Front-loaded with purpose and the sibling preference before the op catalog, and nearly every clause carries semantics the schema cannot express. It is a single dense paragraph, though — the per-op definitions would scan better as separated or bulleted segments rather than being run together with semicolons.

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?

For a mutation tool with a polymorphic oneOf ops array, the definition covers per-op semantics, defaults, ordering, auth scope, preservation guarantees, and edge-case handling (frames, unconnected shapes). Return values are covered by the output schema, so nothing an agent needs to call this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, yet the description still adds real meaning beyond it: defaults (grid=20, colGap=260, rowGap=140, direction="LR"), reference-frame rules ('aligns to the first id's edge (or the average for center*)', 'spaces elements evenly along an axis (or by a fixed gap from the first)'), the minItems implication (distribute needs 2+ ids), and the fact that ids may be omitted for snap/auto_layout.

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 ('Adjust an EXISTING board without regenerating it') and enumerates the exact operations (align/distribute/move/resize/snap/auto_layout) plus the id source ('element ids from read_page'). It explicitly distinguishes itself from the sibling update_board, so an agent can route without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives an explicit preference rule with alternatives and trigger phrases: 'Prefer this over update_board for "make it neat", "align", "tidy up" requests', plus the contrast 'without regenerating it'. The condition that selects this tool versus the sibling is stated, not inferred.

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