Skip to main content
Glama
Enterprise Architect MCP Server

Enterprise Architect MCP Server

by mm6502

ea_get_diagram_elements

Read-only

Fetch all elements and connectors on a specific Enterprise Architect diagram, including free-text notes, feature-link details, and implied connections for complete diagram analysis.

Instructions

Get all elements and connectors placed on a specific diagram: the diagram itself, plus elements and connectors. elements already includes free-text Note diagram objects, which often carry a legend or abbreviation definitions an agent would otherwise miss. Connectors include feature-link resolution showing which attribute or operation each end attaches to. The connector list is the union of explicit t_diagramlinks rows and implied connectors (both ends on the diagram).

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": {
      "diagramId": "<diagramId>"
    },
    "name": "ea_get_diagram_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
diagramIdYesThe Diagram_ID to get elements for

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.0.1
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv2.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=false), so the bar is lower, and the description clears it by disclosing return composition: elements include free-text Note objects, connectors carry feature-link resolution to specific attributes/operations, and the connector list is a union of t_diagramlinks rows plus diagram-implied connectors. That union/derivation detail is real behavioral context an agent could not get from annotations.

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 payload is front-loaded in the first clause and each following sentence adds distinct information (Notes, feature links, union semantics) rather than repeating. It is dense but every sentence carries non-redundant content.

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?

With no output schema, the description must characterize the return value, and it does so at a useful level: the three top-level parts, inclusion of Note objects, connector end resolution, and how the connector set is derived. It stops short of describing individual element/connector fields or ordering, which is a minor gap for a single-parameter read tool.

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?

There is a single parameter with 100% schema description coverage, so the schema already documents diagramId fully. The description only restates the notion of a 'specific diagram' without adding format, validity, or resolution detail, so the baseline of 3 is appropriate.

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 names a specific verb and resource ('Get all elements and connectors placed on a specific diagram') and enumerates the returned payload (diagram, elements, connectors). The scoping phrase 'on a specific diagram' implicitly separates it from model-wide siblings like ea_list_elements or ea_get_connectors, though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the scope ('on a specific diagram'), and the Note sentence hints at a reason to prefer this tool ('an agent would otherwise miss' legend/abbreviation text). However, there is no explicit when-to-use/when-not guidance or routed alternative for getting connectors or elements outside one diagram.

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