Skip to main content
Glama

add_node_to_view

Add an ArchiMate element as a visual node in a view, with optional placement and size control.

Instructions

Add an ArchiMate element as a visual node in a view.

If `x`/`y` are omitted, or the requested rectangle would overlap an
existing node, the server places the node in the next free slot.
Default node size is 160x80 (junctions are normalized to 32x32 by
`auto_layout_view`).

Args:
    view_id: ID of the target view.
    element_id: ID of the element to render in the view.
    x: Optional preferred X coordinate (top-left, integer pixels).
    y: Optional preferred Y coordinate (top-left, integer pixels).
    width: Node width in pixels. Defaults to 160.
    height: Node height in pixels. Defaults to 80.
    node_id: Optional stable visual node ID. When omitted a UUID is
        generated. Must be unique across the
        *entire* active model — not just within this call, this
        batch, or this concept type. An id already used by any
        element, relationship, view, node or connection is
        rejected. When generating ids across several batches,
        namespace them (`bp-`, `ac-`, `tech-`) so batches cannot
        collide.

Returns:
    Success envelope with `data.node_id` containing the visual
    node's UUID.

Errors:
    `ViewNotFoundError` (returned as `ModelOperationError` from the
        manager) when `view_id` is unknown.
    `ElementNotFoundError` when `element_id` is unknown.
    `ModelOperationError` for a duplicate `node_id`.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNo
yNo
widthNo
heightNo
node_idNo
view_idYes
element_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

The description adds significant behavioral context beyond the annotations: overlap handling, default sizes, UUID generation rules, and error conditions. No contradiction with annotations (readOnlyHint=false, destructiveHint=false).

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?

The description is well-organized with Args, Returns, Errors sections. It is detailed but not excessively verbose. Minor improvements could make the node_id uniqueness explanation slightly more concise.

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?

Given the 7 parameters (0% schema coverage) and output schema presence, the description covers all inputs, returns, and errors thoroughly. No gaps remain for agent understanding.

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?

Despite 0% schema description coverage, the description explains every parameter's purpose, defaults, and behavior (e.g., x/y overlap, node_id uniqueness across the entire model). This fully compensates for the missing schema descriptions.

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?

The description clearly states the action ('Add an ArchiMate element as a visual node in a view'), specifying both the verb and the resource. It distinguishes from sibling tools like 'add_element' (which adds to model) and 'add_nodes_to_view' (batch operation).

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 provides detailed guidance on positioning, defaults, and uniqueness constraints. While it doesn't explicitly state when not to use this tool, the context is clear from sibling names (e.g., for batch use 'add_nodes_to_view').

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/byrondelgado/mcp-archimate'

If you have feedback or need assistance with the MCP directory API, please join our Discord server