endiagram-mcp
v0.3.16EN Diagram — structural verification for concurrent systems.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
structure
What is this system? Returns shape (Pipeline, Fork-Join, DAG, Star, Cycle, Tree, Complete, etc.), stages with roles, bridge nodes, cycles, parallelism, critical path, dominator tree, min-cuts, subsystems, interface nodes, actors (who does what, workload entropy), locations (where work happens, boundary crossings). Levers: node=X returns per-node centrality (betweenness, closeness, eigenvector) for a specific node. detect_findings=true flags named structural risks — unguarded-sink (sinks reachable via only pipeline actions, no JOIN/HUB gating), single-cut-path (source-sink pairs with only one…
| Parameter | Type | Description |
|---|---|---|
source * | string | EN source code, or path to .en/.txt file |
detect_findings | string | Set to 'true' to flag named structural findings. Possible values: unguarded-sink, single-cut-path, multi-cut-path. |
node | string | Node name. When provided, returns per-node centrality (betweenness, closeness, eigenvector) for this specific node instead of the overview. |
invariant
What's always true — automatic findings and on-demand checks. Automatic outputs: conservationLaws (weighted entity sums constant across executions), sustainableCycles (T-invariants — action sequences returning to start state), depletableSets (entity groups whose simultaneous depletion is irreversible), behavioral.deficiency (0 means structure fully determines dynamics), behavioral.isReversible, behavioral.hasUniqueEquilibrium. On-demand via `rules`: encode domain-specific claims and verify them against the graph — this is how to check things the topology alone can't see (precedence, cove…
| Parameter | Type | Description |
|---|---|---|
source * | string | EN source code, or path to .en/.txt file |
rules | string | Custom structural rules, one per line. Four supported sentence shapes (regex-matched): (1) `no bridge that is also hub` — flags nodes that are both a bridge and a hub. (2) `every path from X to Y pa… |
live
Can it deadlock? Can entities overflow? isStructurallyLive means every siphon contains a trap — no structural deadlock possible. uncoveredSiphons are entity groups that can drain permanently, with the actors and locations affected. isStructurallyBounded means no entity can accumulate without limit. unboundedCycles are action sequences that could cause overflow. See the server instructions for EN language syntax.
| Parameter | Type | Description |
|---|---|---|
source * | string | EN source code, or path to .en/.txt file |
reachable
Can X reach Y? Follows directed data flow first; falls back to undirected. `from` and `to` accept entity names or action names (resolved against the program). Path shows each step with actor and location. locationCrossings counts boundary transitions. defense_nodes checks if guards cover all paths; coverage.fullCoverage=false means unguarded routes exist. See the server instructions for EN language syntax.
| Parameter | Type | Description |
|---|---|---|
from * | string | Starting node name |
source * | string | EN source code |
to * | string | Target node name |
defense_nodes | string | Comma-separated guard nodes to check coverage |
equivalent
Are two systems the same, or what changes if I change this one? Compare mode (source_a + source_b): structural differences, edit distance, spectral equivalence. isCospectral=true means identical graph structure up to relabeling — topologically the same despite different names, actors, or locations. Evolve mode (source + patch): dry-run a change, shows diff plus new/lost bridge nodes. Patch has three directive types — plain EN statement adds an action; a line starting with `-` (and not containing `do:`) removes the named action; a statement whose action name matches an existing one replaces…
| Parameter | Type | Description |
|---|---|---|
patch | string | EN patch for evolve mode. Three directive types: plain EN statement (`actor do: X needs: Y yields: Z at: W`) adds action X; a line starting with `-` (and not containing `do:`) removes the named action… |
source | string | EN source code for evolve mode |
source_a | string | EN source code or path to .en/.txt file for the first system |
source_b | string | EN source code or path to .en/.txt file for the second system |
compose
How do parts combine, or how does a part stand alone? Merge mode (source_a + source_b + links): declare which entities in A are the same as entities in B; the combined graph is wired via string-equality of shared names. Extract mode (source + subsystem): pull a named subsystem out as standalone EN with boundary inputs/outputs, actors, and locations. Valid subsystem names come from structure's `subsystems` field — call structure on the source first to discover them. See the server instructions for EN language syntax.
| Parameter | Type | Description |
|---|---|---|
links | string | Entity identifications, one per line. Format: `a.<entity name>=b.<entity name>` (A's entity is the same as B's entity). `#` starts a comment. Example: `a.user session=b.authenticated session`. |
source | string | EN source code for extract mode |
source_a | string | EN source code or path to .en/.txt file for the first system |
source_b | string | EN source code or path to .en/.txt file for the second system |
subsystem | string | Subsystem name to extract. Valid names come from structure's `subsystems` field — call structure on the source first to discover them. |
render
SVG or PNG diagram. Only call when user explicitly asks to visualize. The rendered image is delivered to the user, not injected into the model's context. See the server instructions for EN language syntax.
| Parameter | Type | Description |
|---|---|---|
source * | string | EN source code, or path to .en/.txt file |
color | string | Seed color hex (#RRGGBB) to generate a custom theme. Overrides theme parameter. One color generates the entire palette. |
direction | string | Layout direction: LR (left-to-right) or TB (top-to-bottom). Default auto-detects from condensation DAG aspect ratio. |
isDark | string | true or false. Selects the dark or light variant of a named preset. If omitted, defaults to dark unless theme=light. |
output | string | File path to save the rendered image |
quality | string | Output quality: small, mid, or max |
structure_layers | string | Bitmask for structure overlays. Bits: 1=subsystems, 2=pipelines, 4=cycles, 8=forks, 16=joins, 32=hubs, 64=deadlock, 128=overflow. Default 255 (all on). Pass 0 to hide all. |
theme | string | Color theme. Curated presets (each with light + dark variants; pair with `isDark`): `Editorial` (stone paper + rust focal, adapted from cathrynlavery/diagram-design), `Primer` (GitHub design system   |
type | string | Output format: png (default) or svg. PNG is rasterized server-side via Batik. |
view | string | Group by: actors (partition by actor) or locations (partition by location). Default auto-detects topology. |