Skip to main content
Glama

place_relative

Move one node next to another using page coordinates, setting side, gap, and cross-axis alignment so nodes with different parents can be positioned relative to each other.

Instructions

Move a node next to another node: side right|left|below|above with a gap, aligned start|center|end along the other axis. Uses absolute (page) coordinates, so the two nodes may have different parents. Fails for auto-layout children that aren't absolutely positioned.

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": {
      "nodeId": "<nodeId>",
      "relativeToId": "<relativeToId>"
    },
    "name": "place_relative"
  }
}

Input Schema

NameRequiredDescriptionDefault
gapNoSpacing in px, default 0
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.
sideNoDefault right
alignNoCross-axis alignment to the reference, default start (top for left/right, left for above/below)
nodeIdYesNode to move
relativeToIdYesReference node (not moved)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

There are no annotations, so the description carries the full behavioral burden. It discloses meaningful behavior beyond the schema: placement uses absolute page coordinates, parent relationships may differ, and a specific auto-layout case will fail. It does not cover permissions, reversibility, or success/error response details, but the core behavioral constraints are well surfaced.

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?

The description is three tightly packed sentences with no wasted wording. The operation is front-loaded, followed by coordinate semantics and then the failure condition.

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?

For a six-parameter mutation tool with no annotations and no output schema, the definition covers the core operation, coordinate model, and a key failure case. It leaves out authorization, reversibility, and response behavior, but the essential calling context is present.

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 baseline is 3. The description reinforces the meaning of side, gap, and align and explains that alignment is along the other axis. It does not add meaning for the file parameter beyond what the schema already documents.

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 opens with a specific verb and resource: moving a node next to another node. It also clarifies side and alignment semantics and the absolute-coordinate behavior, which helps distinguish it from unrelated placement tools. It does not explicitly name sibling alternatives such as align_nodes, so it is clear but not fully differentiated by name.

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?

The description supplies a concrete usage context by explaining that placement uses absolute page coordinates and can span different parents. It also gives an important exclusion: it fails for auto-layout children that are not absolutely positioned. It does not explicitly compare against alternative tools, but the when-to-use and when-not conditions are clear.

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