Skip to main content
Glama

add_nodes_to_view

Add multiple visual nodes to an ArchiMate view in a single API call, with optional rollback on error for safe batch updates.

Instructions

Add multiple visual nodes to a view in one call.

Each node item supports the same fields as `add_node_to_view`. Both
short and long field names are accepted (`element` or `element_id`,
`id` or `node_id`).

Node item shape:
    ```
    {
      "id": "id-customer-node",   # optional stable ref
      "element": "id-customer",   # required (alias: element_id)
      "x": 40, "y": 40,            # optional, auto-placed if absent
      "width": 160, "height": 80   # optional, defaults shown
    }
    ```

Args:
    view_id: ID of the target view.
    nodes: List of node item objects.
    rollback_on_error: When true (default), restore the previous
        view state if any item fails.

Returns:
    Success envelope with `data.node_ids`, `data.count`, and
    `data.rollback_on_error`.

Errors:
    `ModelOperationError` (view not found / duplicate node_id) and
    `ElementNotFoundError` for the first failing item.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nodesYes
view_idYes
rollback_on_errorNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations indicate mutation (readOnlyHint=false) and non-destructiveness (destructiveHint=false). The description adds value by explaining the rollback_on_error behavior, the success envelope with node_ids and count, and specific error types (ModelOperationError, ElementNotFoundError). This goes beyond what annotations provide.

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-structured with a clear main sentence, a bullet-like explanation of node shape, and separate sections for args, returns, and errors. It is relatively concise but could be tightened slightly; the node item shape example adds clarity without being overly verbose.

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?

Given the tool's complexity (3 parameters, nested objects, output schema exists), the description covers purpose, parameters, returns, and errors. It implies the view must exist and handles failure modes. The output schema is mentioned, so return values are explained. It does not explicitly list prerequisites but is largely complete.

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?

The input schema has 0% description coverage, so the description carries the full burden. It explains all three parameters: view_id (target view ID), nodes (list of node objects with shape details including optional/required fields), and rollback_on_error (default true). This adds significant meaning beyond the bare 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?

The description clearly states the verb 'Add multiple visual nodes to a view in one call,' specifying the resource (view) and the action (add nodes). It distinguishes from the sibling tool 'add_node_to_view' by being a batch variant and explains that each node supports the same fields. This provides clear purpose and differentiation.

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 implies that this tool is for adding multiple nodes in one call, contrasting with the single-node sibling. It mentions the rollback_on_error behavior and error handling, which provides context. However, it lacks explicit guidance on when to use this tool versus alternatives or when not to use it.

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