Skip to main content
Glama
Enterprise Architect MCP Server

Enterprise Architect MCP Server

by mm6502

ea_get_scenarios

Read-only

Retrieve use case scenario flows for a given element ID, returning Basic, Alternate, and Exception paths with numbered steps, triggers, results, and referenced business rule codes.

Instructions

Get use case scenario flows for an element. scenarios holds the parsed flows; each has name, type, notes, and steps, and each step carries stepNumber plus its attributes (trigger, uses, result, state, link). Steps are numbered within each scenario. Scenarios ordered by type: Basic Path first, then Alternate, then Exception. A step's uses may name a business rule or constraint by code; that code is not independently searchable or resolvable — look it up among this same elementId's own constraints via ea_get_element, not by a separate lookup.

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": {
      "elementId": "<elementId>"
    },
    "name": "ea_get_scenarios"
  }
}

Input Schema

NameRequiredDescriptionDefault
elementIdYesThe Object_ID of the element (typically a UseCase) to get scenarios 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

A4.1/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, the description discloses return-shape and ordering guarantees (Basic Path, then Alternate, then Exception) and per-scenario step numbering, plus a genuine limitation: rule codes in `uses` are unresolvable on their own. Those are behavioral facts an agent could not get from the 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?

The purpose is front-loaded in the first sentence, followed by structural detail that earns its place because no output schema exists. The middle sentences are dense with nested field names but contain no filler.

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?

With no output schema and one simple parameter, the description supplies exactly the missing pieces: the shape of the returned scenarios and steps, their ordering, and the cross-reference limitation. Nothing an agent needs to call or interpret this tool is absent.

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?

Schema coverage is 100% and there is a single parameter whose meaning ('Object_ID of the element, typically a UseCase') is already documented in the schema. The description only reasserts that the elementId refers to the same element whose constraints are fetched, so it adds marginal meaning.

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 states a specific verb and resource ('Get use case scenario flows for an element') and clarifies the returned resource ('scenarios' holding parsed flows). It differentiates itself from siblings by naming ea_get_element as the route for constraint codes, though it does not otherwise position itself among the other ea_get_* tools.

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?

Usage context is clear given the narrow purpose, and there is an explicit exclusion: business-rule codes are 'not independently searchable or resolvable' and must be looked up via ea_get_element rather than a separate lookup. There is no explicit statement of when to prefer this tool over ea_get_element itself, but the routing rule is concrete and useful.

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