Skip to main content
Glama
Enterprise Architect MCP Server

Enterprise Architect MCP Server

by mm6502

ea_get_package_tree

Read-only

Retrieve top-level packages or the child hierarchy of a specified package, with configurable depth, to navigate and inspect Sparx Enterprise Architect model structure.

Instructions

Navigate the package hierarchy. Without parameters, returns top-level packages. With a packageId, returns that package's children up to the specified depth. Each node carries id, name, parentId, and elementCount.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ea_get_package_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNoHow many levels deep to recurse (max 3, default 1)
packageIdNoPackage ID to get children of. Omit for top-level packages.

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

A4.4/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds real value beyond that by disclosing the shape of returned nodes (`id`, `name`, `parentId`, `elementCount`) and the mode-dependent result set, which matters given there is no output schema. It does not address what happens if depth exceeds the max or how large trees are handled.

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?

Three short sentences with zero waste: the default behavior and the parameterized behavior are front-loaded before the return-shape detail. Nothing repeats the title or pads the description.

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?

For a two-parameter read-only traversal tool with no output schema, the description covers modes, depth semantics, and node fields — enough to call it correctly. Remaining gaps (behavior at the max-depth boundary, handling of invalid package IDs, result-size limits) are minor but real.

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 both parameters are already documented, making 3 the baseline. The description adds the interaction semantics the schema leaves implicit: `depth` recursion is measured from the `packageId` node, and omitting `packageId` switches the result to top-level packages rather than being an invalid call.

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 ('Navigate the package hierarchy') and immediately explains both invocation modes: no parameters returns top-level `packages`, a `packageId` returns that package's children. The resource (packages) is clearly distinct from sibling concerns like elements, diagrams, and connectors, so an agent can select it without opening the schema.

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 clear conditional guidance for the two call patterns ('Without parameters... With a `packageId`...'), which is effectively when-to-use for each mode. It stops short of explicit exclusions or naming alternatives (e.g., use ea_list_elements for package contents), so it is clear context rather than full routing guidance.

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