Skip to main content
Glama

add_note_to_view

Add a visual note (sticky annotation) to a diagram view for comments that do not belong in the model tree, such as caveats or ownership details. Notes are not ArchiMate elements, so they do not affect validation or reports.

Instructions

Add a diagram-only note (sticky annotation) to a view.

Use this to comment on a diagram — a caveat, an owner, a "retire in
FY27". Do NOT create a `Grouping` element just to write a comment:
that pollutes the model tree and participates in validation, while a
note does not.

Notes are visual only. A note has no ArchiMate element, no folder
and no model-tree entry, so it never shows up in `query_elements`,
`count_by_type`, `list_orphan_elements` or the coverage section of
`build_quality_report`. `connect_to_node_ids` draws annotation-only
connector lines that create NO ArchiMate relationship.

`x`/`y` are kept exactly as given, including across
`auto_layout_view` (both layout engines), because a note annotates
one specific spot. Layout will not move element nodes out from under
a note, so place notes in free space — off to the side of the
diagram, or below it. Routed connections are drawn around notes.

Args:
    view_id: ID of the target view.
    text: Note text. Must be non-empty; kept verbatim, so multi-line
        text keeps its line breaks and indentation. Verbatim also
        means escape sequences are NOT interpreted: pass real line
        breaks for a multi-line note, because a literal backslash-n
        is stored and rendered as those two characters.
    x: X coordinate (top-left, integer pixels). Used exactly.
    y: Y coordinate (top-left, integer pixels). Used exactly.
    width: Note width in pixels. Defaults to 185 (Archi's default).
    height: Note height in pixels. Defaults to 80.
    connect_to_node_ids: Optional list of things to point at. Each
        entry may be a visual node ID or an element ID that is
        already visible in this view.
    note_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`, `data.connection_ids`,
    `data.connected_node_ids` (resolved visual node IDs),
    `data.text`, and the geometry `data.x`, `data.y`,
    `data.width`, `data.height`.

Errors:
    `INVALID_NOTE_TEXT` when `text` is missing or blank.
    `ViewNotFoundError` when `view_id` is unknown.
    `ModelOperationError` for a duplicate `note_id`, or for connect
        targets that are not visible in the view — the unresolved
        IDs are listed in `error.details.unknown_ids` and nothing is
        created.

Notes are not updatable or deletable yet: recreate the view (or the
note) if the text or placement needs to change.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYes
yYes
textYes
widthNo
heightNo
note_idNo
view_idYes
connect_to_node_idsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Discloses extensive behavioral traits beyond annotations: notes are visual only, have no ArchiMate element, do not appear in queries, x/y are kept exactly across layout, layout does not move nodes under a note, and notes are not updatable or deletable yet. Annotations (readOnlyHint=false, destructiveHint=false) are consistent with description.

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?

Well-structured with clear sections: intro, usage guidance, Args, Returns, Errors, and limitations. Each sentence adds value, no redundancy. Front-loaded with key purpose and distinction.

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?

Completely covers purpose, usage, all parameters, return values (with output schema noted), error types, and limitations. For a tool with 8 parameters and complexity, the description is thorough and actionable.

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?

Input schema has 0% description coverage, but the description fully explains each parameter: text (non-empty, verbatim, escape sequences not interpreted), x/y (exact integers), width/height (defaults), connect_to_node_ids (accepted ID types), note_id (uniqueness across entire model, namespacing advice). Adds significant value beyond 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 tool adds a diagram-only note (sticky annotation) to a view. It distinguishes from grouping elements and other tools by specifying that notes are visual only, have no ArchiMate element, and do not participate in model tree or validation.

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?

Explicitly says when to use (to comment on a diagram) and when not to use (do not create a Grouping element for comments). Provides reasoning that notes do not pollute the model tree or participate in validation, guiding the agent to choose the right tool.

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