Skip to main content
Glama

distribute_nodes

Evenly spaces selected nodes along a horizontal or vertical axis. Set a fixed gap to lay them out sequentially; omit it to equalize spacing between the outermost nodes.

Instructions

Distribute nodes along an axis (ordered by current position). Without gap: the outermost nodes stay put and the spacing between them is equalised (needs ≥3 nodes). With gap: nodes are laid out sequentially from the first one with that fixed spacing. Works in absolute coordinates; per-node errors are reported.

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": {
      "nodeIds": "<nodeIds>"
    },
    "name": "distribute_nodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
gapNoFixed spacing in px; omit to equalise between the extremes
axisNoDefault horizontal
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.
nodeIdsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose real behavior: the outermost nodes stay fixed, ordering follows current position, coordinates are absolute, and per-node errors are reported. It does not say what the tool returns, whether the operation is undoable, or what happens when `gap` is supplied with only two nodes (the schema permits minItems=2 while the ≥3 requirement is stated only for the no-gap case).

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?

Two tightly written sentences with the primary behavior front-loaded and the two modes branching cleanly; every clause (including the ≥3 precondition and absolute-coordinate note) carries operational weight, with no filler.

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?

Reasonably complete for a four-parameter mutation with no annotations and no output schema: it explains the distribution algorithm, both modes, and error reporting. Return shape and the handling of the two-node edge case are the remaining gaps an agent must guess at.

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

Parameters4/5

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

Adds genuine meaning beyond the 75% schema coverage: `gap` doubled as a mode switch with distinct semantics, `axis` tied to current-position ordering, and `nodeIds` carrying the implicit ≥3-node precondition. The `file` parameter receives no mention in the description and is left entirely to the schema.

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 ("Distribute nodes along an axis") plus the governing rule ("ordered by current position"), which cleanly separates it from align/spacing siblings that position nodes by shared edges rather than by redistributing them.

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?

Explicitly splits the two operating modes: no `gap` equalises spacing between the stationary extremes and needs ≥3 nodes, while `gap` lays nodes out sequentially from the first at fixed spacing. It gives clear conditions for each mode but names no alternative tool or exclusion, so it is clear context rather than full when/when-not guidance.

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