MCP Tooling Improvements for Architecture Modeling Workflows
February 13, 2026
Codex
Draft
This PRD proposes improvements to the Archi MCP toolset used for model authoring, large-batch mutations, and view construction. The goal is to reduce orchestration overhead, improve reliability for high-volume operations, and make model outcomes more deterministic for both human users and agentic clients.
Current workflows are functional but inefficient for large, structured modeling tasks:
- High call volume is required for hierarchical model creation.
- Agents must manually orchestrate async lifecycle and tempId mapping across chunks.
- View construction requires low-level visual operations and explicit nesting logic.
- Diagnostics focus on structural integrity but provide limited semantic guidance.
- There are limited idempotent operations for safe reruns and recovery.
- Reduce total MCP calls for common modeling workflows by at least 40%.
- Increase first-pass success rate for large mutation jobs (100+ ops) to at least 98%.
- Cut average model build time for capability maps by at least 50%.
- Improve debuggability with deterministic, machine-actionable failure reasons.
- Enable safe re-execution without duplicate creation.
- Replacing the existing ArchiMate metamodel or semantics.
- Changing Archi desktop UX outside MCP-exposed capabilities.
- Building a full natural-language planner in this phase.
- AI agents performing automated architecture modeling.
- Enterprise architects authoring and validating capability maps.
- Tool integrators building higher-level workflows on MCP APIs.
- Create a multi-level capability hierarchy with strict MECE constraints.
- Generate a single nested view from a hierarchy in one operation.
- Safely rerun partially failed jobs without duplicates.
- Validate semantic correctness beyond structural integrity.
- Produce repeatable output for CI-like model generation pipelines.
Add a high-level operation, for example createCapabilityHierarchy, that creates elements, composition relationships, and optional nested view visuals from a single payload.
Required capabilities:
- Accept tree input with names, docs, and properties.
- Create missing concepts only, with configurable duplicate policy.
- Optionally materialize into a target view with nesting and sizing policy.
- Return full concept and visual mapping table.
Acceptance criteria:
- A 3-level, 50+ node hierarchy can be created in one API call.
- Returned mapping includes
conceptId,visualId, and parent references. - Operation is replay-safe with configured idempotency key.
Add idempotency support and upsert semantics to mutation operations.
Required capabilities:
- Request-level idempotency key.
createOrGetElementandcreateOrGetRelationshipmodes with matching keys.- Duplicate strategy options:
error,reuse,rename.
Acceptance criteria:
- Replaying identical payloads does not create duplicates.
- Client can choose strict failure or automatic reuse.
Make chunking behavior explicit and predictable for large batches.
Required capabilities:
- Client-provided max chunk size hints.
- Stable operation ordering guarantees.
- Structured failure payloads with operation index, type, cause, and retryability.
Acceptance criteria:
- Failed chunk is fully traceable to exact source operation.
- Recoverable failures can be retried without re-running successful chunks.
Add higher-level view helpers to reduce low-level addToView/nestInView orchestration.
Required capabilities:
populateHierarchyViewhelper for recursive placement.- Grid/column layout presets for nested children.
- Option to draw selected relationships automatically in-view.
Acceptance criteria:
- Nested capability map can be generated from concept IDs in one call.
- Parent-child nesting is consistent with model composition edges.
Extend diagnostics beyond orphan and connection checks.
Required capabilities:
- Validate relationship semantics by layer/type rules.
- Flag suspicious association overuse where typed relations exist.
- Detect decomposition anti-patterns (cycles, mixed abstraction levels).
Acceptance criteria:
- Semantic diagnostics include severity, rule ID, and remediation hint.
- Validation can run as a pre-save gate.
Upgrade planning endpoint to support full-batch dry runs.
Required capabilities:
- Diff preview for creates/updates/deletes before mutation.
- Risk score for likely duplicate collisions.
- Estimated operation cost and chunk count.
Acceptance criteria:
- Client can approve or reject a mutation plan without side effects.
- Plan output aligns with final apply output schema.
Allow explicit relationship rendering modes in views.
Required capabilities:
- Render all, selected types, or none.
- Auto-suppress duplicate/overlapping visual connections.
- Attach routing preset per relationship family.
Acceptance criteria:
- Generated views remain readable under high relationship density.
- Duplicate connection rendering is prevented by default.
Add richer operation telemetry for long-running jobs.
Required capabilities:
- Operation progress percentages and stage markers.
- Optional event stream endpoint for status updates.
- Per-operation timing breakdowns for bottleneck analysis.
Acceptance criteria:
- Clients can show reliable progress bars.
- Telemetry supports root-cause analysis for slow runs.
Provide built-in templates for common architecture artifacts.
Examples:
- Capability hierarchy starter.
- Application integration map.
- Migration roadmap scaffold.
Acceptance criteria:
- Template instantiation produces valid model and view artifacts.
- Templates are parameterizable and versioned.
Add native model snapshot and diff support.
Required capabilities:
- Export model snapshot metadata before/after mutation.
- Generate summary diff per element/relationship/view.
Acceptance criteria:
- Clients can present concise change reports after apply.
- Snapshot diffs are stable and machine-readable.
- Keep backward compatibility for existing operations.
- Introduce new operations under explicit versioned names.
- Reuse existing result envelope fields where possible.
- Standardize schema for
errors,warnings,mappings, andmetrics.
- Median MCP calls per large capability map run.
- End-to-end completion time for modeled benchmark scenarios.
- Duplicate creation rate after retries.
- Percentage of runs requiring manual recovery.
- Diagnostic signal quality measured by accepted remediation rate.
- Phase 1: Ship idempotency, deterministic failure contracts, and improved diagnostics.
- Phase 2: Ship hierarchy authoring and view composition helpers.
- Phase 3: Ship templates, snapshot diff, and event-stream telemetry.
- Risk: Higher-level helpers may hide semantics. Mitigation: Include expandable execution traces showing generated low-level operations.
- Risk: Upsert matching may bind to wrong concepts. Mitigation: Require explicit matching keys and expose confidence diagnostics.
- Risk: Added complexity in server implementation. Mitigation: Deliver features incrementally behind capability flags.
- Should idempotency keys be caller-provided only, or server-generated options too?
- What uniqueness policy should be default for
capabilitynames? - Should semantic validation be blocking by default in
apply? - Which event transport is preferred for operation streaming in MCP contexts?