trident
Server Details
Create and edit collaborative architecture diagrams with any AI assistant using the Trident 2D DSL.
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- Last Tested
- Transport
- Streamable HTTP · MCP 2024-11-05
- URL
- Repository
- alexeibespalov/tridentpublic
- GitHub Stars
- 0
- ChatGPT
- –
- Claude
- –
TDQS
Scored across 24 tools
The add_node/add_container/add_connection trio versus draw_group is a genuine overlap, but the descriptions explicitly carve out the boundary (draw_group for regions, add_* for small edits) with cross-references, and open_document vs get_document_summary vs get_document_png are clearly segmented by purpose. The weakest area is the cluster of reference/learning tools (get_quick_start, get_generator_guide, get_trident_spec, get_comprehensive_example, validate_trident), which an agent could easily confuse when choosing how to learn the DSL.
Nearly every tool follows snake_case verb_noun (add_node, update_container, delete_annotation, get_document_summary, validate_trident). Only a few bare/abstract names break the pattern: explain, make_suggestion, and draw_group, where the verb alone does not convey the resource.
24 tools for a live collaborative diagram editor is borderline heavy. The 12 CRUD operations and the 4 read/inspection tools all earn their place, but five overlapping documentation tools (quick_start, generator_guide, spec, example, validate) could be consolidated into one or two reference tools without losing capability.
Nodes, containers, and annotations have full create/update/delete coverage plus rich read paths, but connections can only be added and deleted — no update_connection for changing labels, routing, or ERD type without delete-and-recreate. There is also no document-level lifecycle: no list, create, or search for documents, and the canvas graphic is updatable but not addable or removable.
Available Tools
24 toolsadd_annotationAInspect
Adds a text annotation to a live Trident document. Two visual styles: style:stickyNote (default — post-it card with colored background, good for notes/callouts) or style:textBody (plain transparent text, good for diagram titles and section labels). Ideal for architectural notes, decision records, section labels, or TODO markers. Appears immediately for all collaborators. Requires a valid editor access token.
Inputs: token (required), agentId (required), annotation (required), userName, +1 more.
add_connectionAInspect
Adds a connection (arrow/edge) between two nodes or containers in a live Trident document. Draw an edge as soon as both of its ends exist — do not save the connections for the end (draw_group does this for you). Use get_document_summary to get valid source and target IDs before calling this. Requires a valid editor access token. For ERD relationships, connect the two TABLE containers (field rows are rejected as endpoints) and set type to an ERD pair such as "one_to_many".
Inputs: token (required), agentId (required), connection (required), userName, +1 more.
add_containerAInspect
Adds ONE empty container (group/swimlane) to a live Trident document. When you are building a diagram, do NOT create the containers first and fill them later — use draw_group, which draws a container together with its nodes and edges. The result reports where things landed: "placed" (centre x/y and size w/h), the "container" box grown around its nodes, "overlaps" when something landed on top of something else, "nextFree" (top-left corners of clear space to the right of and below the whole diagram — positions are centres, so add half your region's width/height), and sometimes a "hint" — act on it. Containers visually group related nodes. Use get_document_summary to check existing container IDs before adding to avoid duplicates. Requires a valid editor access token. To build an ERD (entity-relationship diagram), add one container per table with kind:"erd" and an x/y position, then add each field with add_node (container:, no x/y) — rows are stacked and the table sized automatically — and join TABLES (never rows) with add_connection using an ERD pair type such as "one_to_many".
Inputs: token (required), agentId (required), container (required), userName, +1 more.
add_nodeAInspect
Adds ONE node to a live Trident document — for small edits to an existing diagram. To build a region (a container with its nodes and edges) use draw_group instead. The node appears immediately for all collaborators. The result reports where things landed: "placed" (centre x/y and size w/h), the "container" box grown around its nodes, "overlaps" when something landed on top of something else, "nextFree" (top-left corners of clear space to the right of and below the whole diagram — positions are centres, so add half your region's width/height), and sometimes a "hint" — act on it. Requires a valid editor access token. Before adding nodes: call open_document to understand the diagram layout and pick sensible positions; call get_document_summary to get all existing entity IDs so you can avoid duplicates. IMPORTANT: if this node belongs inside a container, pass node.container on THIS call — do NOT create the node without a container and reparent it later via update_node. Orphaned nodes appear immediately to all live collaborators and create unnecessary visual churn.
Inputs: node (required), token (required), agentId (required), userName, +1 more.
delete_annotationADestructiveIdempotentInspect
Removes a text annotation from a live Trident document. Use get_document_summary to get all annotation IDs before calling this. Requires a valid editor access token.
Inputs: token (required), agentId (required), annotationId (required), userName, +1 more.
delete_connectionADestructiveIdempotentInspect
Removes a connection from a live Trident document. Provide either the connectionId, or both source and target node IDs to find and remove the matching connection. Use get_document_summary to get all connection IDs before calling this. Requires a valid editor access token.
Inputs: token (required), agentId (required), source, target, +3 more.
delete_containerADestructiveIdempotentInspect
Removes a container from a live Trident document. By default, nodes inside are detached (kept on the diagram without a container). Pass deleteNodes: true to remove the container's nodes as well. Use get_document_summary to get all container IDs before calling this. Requires a valid editor access token.
Inputs: token (required), agentId (required), containerId (required), userName, +2 more.
delete_nodeADestructiveIdempotentInspect
Removes a node from a live Trident document. All connections to/from this node are also removed automatically. Use get_document_summary to get all node IDs before calling this. This action is reversible via Ctrl+Z in the Trident editor. Requires a valid editor access token.
Inputs: token (required), nodeId (required), agentId (required), userName, +1 more.
draw_groupAInspect
Draws ONE region of the diagram in a single call: a container, the nodes inside it, and the edges that touch those nodes. This is THE way to build a diagram in a live document. A human is watching the canvas, and the server draws the items one at a time in the order a person would — the container, then each node followed at once by its edges — at a readable pace (a call takes about 0.7 s per item before it returns). Build a diagram as a series of draw_group calls, one region per call, issued ONE AFTER ANOTHER (never in parallel): finish a region before starting the next, and position each new region from the previous result's nextFree. Never create all the containers first, then all the nodes, then all the connections. The result reports where things landed: "placed" (centre x/y and size w/h), the "container" box grown around its nodes, "overlaps" when something landed on top of something else, "nextFree" (top-left corners of clear space to the right of and below the whole diagram — positions are centres, so add half your region's width/height), and sometimes a "hint" — act on it. Layout: nodes are about 150 wide × 50 tall; space node centres ~180 apart horizontally and ~100–160 vertically; leave 60–100 units of clear space between the EDGES of neighbouring containers (a container extends ~40 beyond its outermost nodes, plus a label strip on top), and size each region from its own node count rather than using one uniform grid. Everything is validated before anything is drawn. At most 25 items (container + nodes + connections) per call — split a larger region. Also usable without "container" to add free-standing nodes and edges, or nodes into an existing container (set node.container). Requires a valid editor access token.
Inputs: token (required), agentId (required), nodes, userName, +3 more.
explainARead-onlyInspect
Delivers an explanation payload to human collaborators watching the document, optionally anchored to a specific node or container. Use this when you want to explain what a diagram element represents, why it exists, or how it relates to other parts of the system — without suggesting a change. The explanation appears in the UI attributed to you. Does NOT mutate the diagram. Requires a valid viewer or editor access token. IMPORTANT: this tool automatically pauses (3–15 s, proportional to explanation length) before returning, so the human has time to read. Do NOT add your own artificial delays between explain calls — the pacing is built in.
Inputs: token (required), agentId (required), userName (required), explanation (required), +1 more.
get_comprehensive_exampleARead-onlyInspect
Returns a comprehensive Trident example demonstrating all syntax features including containers, nodes (traditional and bracket-style syntax), diamond/rectangle shapes, icons, connections with labels, routing modes, cards, and text annotations. Use this to see all features in action.
Inputs: no named parameters.
get_document_pngARead-onlyInspect
Renders the current state of a live Trident document as a PNG image directly from the Yjs collaborative session — bypassing Firestore, which may be stale. Returns a base64-encoded PNG. Use this to visually verify that diagram edits look correct before or after making changes.
Inputs: token (required).
get_document_summaryARead-onlyInspect
Returns a complete structured summary of a Trident document as JSON: all node IDs, container IDs, connection IDs, annotation IDs, labels, entity counts, the position of every node (x/y centre) and container (x/y centre plus w/h), and nextFree — the clear space right of and below the diagram. Use this for PROGRAMMATIC OPERATIONS — it is never truncated regardless of diagram size, so you always get every entity ID. Use this before any bulk update, delete, or enumeration task. To read and understand the diagram as a human-readable diagram, use open_document instead. Requires a valid access token.
Inputs: token (required).
get_generator_guideARead-onlyInspect
Returns LLM-optimized instructions for generating Trident diagrams, including quick reference, critical rules (especially Y-axis!), spacing guidelines, common patterns, color conventions, and error prevention checklist. Use this before generating Trident markup (a whole diagram as text). Not needed up front in a live session that edits a document with add_node / add_connection — load it there only for domain conventions (BPMN/UML/flowchart layout, ERD, C4).
Inputs: no named parameters.
get_quick_startARead-onlyInspect
Returns a condensed 2-minute quick-start guide with minimal working examples, core syntax reference, and key concepts. Use this for rapid learning when you need to generate simple diagrams quickly.
Inputs: no named parameters.
get_recent_changesARead-onlyInspect
Returns the recent change history for a live Trident document. Each entry shows who made the change, what was changed, and when. Useful for understanding what edits have been made by AI agents or human collaborators. Requires a valid access token.
Inputs: token (required), limit, since.
get_trident_specARead-onlyInspect
Returns the complete Trident 2D specification including grammar, syntax rules, coordinate system, containers, nodes, connections, shapes, and icon reference. Use this when you need deep understanding of the Trident DSL.
Inputs: no named parameters.
make_suggestionAInspect
Posts a visible suggestion to human collaborators watching the document WITHOUT making any changes to the diagram. Use this when you observe something worth flagging — a potential mistake, an improvement, or a question — but want the human to decide. The suggestion appears as a bold "SUGGESTION:" callout in the UI with a radar pulse animation on your presence dot for 10 seconds. Does NOT mutate the diagram. Requires a valid viewer or editor access token.
Inputs: token (required), agentId (required), userName (required), suggestion (required), +1 more.
open_documentARead-onlyInspect
Opens a live Trident document and returns its full contents as Trident markup DSL — the human-readable text format used to author diagrams. Use this to READ and UNDERSTAND the diagram: its structure, labels, connections, and layout. Do NOT rely on this to enumerate entity IDs for programmatic use — the DSL can be very large and the output may be truncated. To get a complete, structured list of all entity IDs and counts, use get_document_summary instead. Requires a valid access token.
Inputs: token (required), agentId, userName.
update_annotationAIdempotentInspect
Updates an existing text annotation in a live Trident document. Only the fields you provide are changed. Use get_document_summary to get all annotation IDs before calling this. Requires a valid editor access token.
Inputs: token (required), agentId (required), changes (required), annotationId (required), +2 more.
update_canvas_graphicAIdempotentInspect
Repositions or resizes a background image (canvas graphic) in a live Trident document. Use open_document to get the canvas graphic ID and current dimensions — it appears as: image "" at (x, y) width:W height:H. The position at (x, y) is the TOP-LEFT corner. USE THIS BEFORE placing many geographically-positioned nodes: if the background map is small (e.g. width < 700), scale it up so nodes have room to breathe and do not overlap. Requires a valid editor access token.
Inputs: token (required), agentId (required), changes (required), canvasGraphicId (required), +2 more.
update_containerAIdempotentInspect
Updates properties of an existing container in a live Trident document. Only provided fields are changed. Use get_document_summary to get all container IDs before calling this. Requires a valid editor access token. This is also how you RESIZE a container: set width/height (and x/y to keep it centred over its nodes) — do this whenever you add or move nodes outside a fixed-size container.
Inputs: token (required), agentId (required), changes (required), containerId (required), +2 more.
update_nodeAIdempotentInspect
Updates properties of an existing node in a live Trident document. Only the fields you provide are changed; others are preserved. Use get_document_summary to get all node IDs before calling this. Requires a valid editor access token.
Inputs: token (required), nodeId (required), agentId (required), changes (required), +2 more.
validate_tridentARead-onlyInspect
Returns a comprehensive validation checklist for Trident diagrams covering syntax rules, semantic rules, best practices, and common mistakes to avoid. Use this after generating a diagram to verify correctness.
Inputs: diagram.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Create and edit architecture diagrams from your AI agent; get an SVG and a live editable canvas.
Draw architecture diagrams, UML, planning boards and clickable wireframes from your AI assistant.
Software diagrams for developers, teams and agents — give your AI agents diagramming superpowers.
Generate, edit, and export data-architecture diagrams from your AI. Column lineage, PNG in chat.
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to turn natural-language descriptions of systems, processes, and data into auto-laid-out, hand-drawn editable diagram files across 25 diagram types — architecture, flowcharts, sequence, swimlanes, ER models, Gantt, timelines and charts — with optional natural-language revision and SVG/PNG export. It can also persist an architecture as a version-controlled knowledge graph that the AI can query and lint, running fully offline in Cursor, Claude Code and Windsurf without API keys.-
- FlicenseNot gradedqualityAmaintenanceEnables AI coding assistants to generate, revise, and export auto-laid-out hand-drawn diagrams from architecture descriptions across many diagram types, and optionally maintain a queryable, version-controlled architecture knowledge graph.-
- FlicenseNot gradedqualityAmaintenanceEnables AI coding assistants to turn natural-language descriptions of systems and data into editable, auto-laid-out Excalidraw diagrams across 25 types — from architecture and sequence diagrams to Gantt charts and scatter plots — plus optionally persist the architecture as a queryable, version-controlled knowledge graph. Runs fully offline with export to SVG and PNG, and diagrams can be revised afterward in natural language.-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants in Cursor, Claude Code, and Windsurf to turn plain descriptions of components, actors, or data into auto-laid-out, editable hand-drawn diagrams across 25 types — including architecture, flowcharts, sequence diagrams, Gantt charts, and charts — with architecture-aware styling and natural-language revision. It can optionally persist a system as a version-controlled, queryable knowledge graph, and it runs fully offline with no API keys, exporting to SVG and PNG.-
Glama MCP Gateway
Add one secure layer between your agents and this server.