Skip to main content
Glama
Enterprise Architect MCP Server

Enterprise Architect MCP Server

by mm6502

ea_list_elements

Read-only

List elements in an Enterprise Architect package, optionally filtered by object type. Page with offset and use the type breakdown to narrow large result sets before fetching details.

Instructions

List elements within a package, optionally filtered by object type. elements is a lightweight list (ID, type, name, alias, stereotype), grouped by element type and then ordered by the model's internal identity. That order is stable but artificial — neither alphabetical nor the analyst's tree order — so adjacency carries no meaning. Walk a large package with offset rather than a larger limit; while rows remain, continuation names the next call. When far more elements match than one window can hold, breakdown reports how many each type holds, so the next call can narrow by objectType instead of paging.

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": {
      "packageId": "<packageId>"
    },
    "name": "ea_list_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (default 50)
offsetNoZero-based index of the first result to return (default 0). Page by re-calling with the offset carried in continuation.
packageIdYesThe Package_ID to list elements from
objectTypeNoFilter by object type (e.g., Class, UseCase, Activity, Screen)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv3.0.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / limit / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / offset / maximum
      Added value: +9007199254740991
  2. Changed4 schema fields changedv3.0.0
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of results (default 50)"New value: +"Maximum number of results to return (default 50)"
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "description": "Zero-based index of the first result to return (default 0). Page by re-calling with the offset carried in continuation.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
  3. First observedv2.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint=false; the description goes much further, disclosing that result order is stable but artificial and that adjacency carries no meaning — a non-obvious trait that would otherwise cause wrong inferences. It also explains the continuation-token loop and what 'breakdown' reports, which no annotation covers.

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?

Front-loads purpose in the first sentence and sequences result shape, ordering caveat, pagination strategy, and breakdown guidance in a logical order with no filler. The ordering sentence runs long with an em-dash aside, but the aside is load-bearing information rather than padding.

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?

There is no output schema, and the description compensates by naming the returned fields, the 'continuation' token, and the 'breakdown' counts. Combined with pagination and filtering guidance, an agent has everything needed to call this correctly and interpret the response without guessing.

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?

Schema coverage is 100%, so each of the four parameters is already documented, but the description adds real meaning on top: the limit-vs-offset tradeoff and the fact that offset should be carried from 'continuation'. It also introduces 'continuation' and 'breakdown', which are response fields absent from the input schema, so the added value clearly exceeds the schema here.

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 ('List elements within a package') plus the scoping filter ('optionally filtered by object type'). It also characterizes the payload as a 'lightweight list (ID, type, name, alias, stereotype)', which implicitly separates it from the single-element sibling ea_get_element and the diagram-scoped ea_get_diagram_elements.

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?

Gives explicit operational strategy: walk a large package with 'offset' rather than a larger 'limit', and use 'breakdown' to narrow by 'objectType' instead of paging. What it lacks is a stated boundary against the other search tools (ea_search, ea_resolve), so the agent must infer from package-scoping when this is the right entry point.

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