Skip to main content
Glama
Enterprise Architect MCP Server

Enterprise Architect MCP Server

by mm6502

ea_list_diagrams

Read-only

List diagrams in an Enterprise Architect model, filter by package, diagram type, or name substring, and page or narrow large result sets using continuation and type breakdowns.

Instructions

List diagrams in the model, optionally filtered by package, diagram type, and/or name substring. Each entry in results carries diagramId, name, type, packagePath, and eaGuid. Diagrams are ordered by the model's internal identity — stable but artificial, neither alphabetical nor the analyst's tree order — so adjacency carries no meaning. Walk a large result set with offset rather than a larger limit; while rows remain, continuation names the next call. When far more diagrams match than one window can hold, breakdown reports how many each type holds, so the next call can narrow by diagramType instead of paging.

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_list_diagrams"
  }
}

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.
packageIdNoFilter to diagrams in this package
diagramTypeNoFilter by diagram type (e.g., Logical, Use Case, Sequence, Activity, Component)
nameContainsNoFilter to diagrams whose name contains this substring (case- and diacritic-insensitive across European Latin alphabets)

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. Changed6 schema fields changedv3.0.0
    • addedInput schema / properties / diagramType
      Added value: +{
      +  "description": "Filter by diagram type (e.g., Logical, Use Case, Sequence, Activity, Component)",
      +  "type": "string"
      +}
    • 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"
    • changedInput schema / properties / nameContains / description
      Previous value: -"Filter to diagrams whose name contains this substring (case-insensitive across Slovak alphabet)"New value: +"Filter to diagrams whose name contains this substring (case- and diacritic-insensitive across European Latin alphabets)"
    • 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.3/5.0
Behavior5/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, and the description adds genuinely non-obvious behavior: ordering is by internal identity, is 'stable but artificial', and adjacency carries no meaning. It also discloses the output fields, the continuation mechanism, and the breakdown-by-type diagnostic, none of which appear in annotations or schema.

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?

Four dense sentences, each with a distinct job: scope, return shape, ordering semantics, paging strategy. Front-loaded with purpose, and no filler, though the ordering and paging sentences are packed tightly enough to read as one block.

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, so the description carries the return-shape burden itself and does so by naming diagramId, name, type, packagePath, eaGuid, plus the continuation and breakdown envelope fields. For a five-parameter read-only listing tool, an agent has everything needed to call it and to page or narrow correctly.

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 the baseline is 3, but the description adds strategy that the schema does not contain: prefer advancing offset over inflating limit, follow continuation while rows remain, and use breakdown counts to re-filter by diagramType. It says little extra about packageId or nameContains beyond what the schema documents.

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 opens with a specific verb and resource ('List diagrams in the model') and immediately enumerates the three filter dimensions, so the operation is unambiguous. It never names or contrasts a sibling such as ea_search, so it stops short of full sibling 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?

It gives concrete when-to guidance for paging ('Walk a large result set with offset rather than a larger limit') and for narrowing ('narrow by diagramType instead of paging' when breakdown shows many matches). It does not state when-not-to-use or which sibling to prefer for diagram search, so it is clear context without exclusions.

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