{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "mcp.tridentchart.com",
    "site": "tridentchart.com",
    "addresses": [
      {
        "address": "104.21.81.187",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "104.21.64.0/19",
          "country": "US"
        }
      },
      {
        "address": "172.67.163.100",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "172.67.160.0/20",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:3033::6815:51bb",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:3033::/48",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:3036::ac43:a364",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:3036::/48",
          "country": "US"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "104.21.81.187",
          "172.67.163.100",
          "2606:4700:3033::6815:51bb",
          "2606:4700:3036::ac43:a364"
        ],
        "first_seen": "2026-11-22T19:15:05.455Z",
        "last_seen": "2026-11-23T19:16:09.445Z",
        "checks": 2
      },
      {
        "addresses": [
          "104.21.81.187",
          "172.67.163.100",
          "2606:4700:3036::ac43:a364",
          "2606:4700:3033::6815:51bb"
        ],
        "first_seen": "2026-11-21T14:47:02.904Z",
        "last_seen": "2026-11-21T14:47:02.904Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Cloudflare",
        "evidence": "Server header \"cloudflare\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "trident-mcp-server",
      "version": "1.0.0",
      "protocol_version": "2024-11-05"
    },
    "headers": {
      "server": "cloudflare",
      "access-control-allow-origin": "*"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 0,
      "sample": []
    },
    "same_site": {
      "total": 0,
      "sample": []
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "io.github.alexeibespalov",
      "total": 0,
      "sample": []
    },
    "same_repository": {
      "repository_url": "https://github.com/alexeibespalov/tridentpublic",
      "total": 0,
      "sample": []
    },
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "27399",
    "server_name": "io.github.alexeibespalov/trident",
    "url": "https://mcp.tridentchart.com/mcp",
    "host": "mcp.tridentchart.com",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-23T19:16:09.445Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "415147cba1014204c6884e611ed474bd0bea4d31b1fe5ea96400c2ee88d00ae4",
    "first_listed_at": "2026-11-21T14:47:02.904Z",
    "created_at": "2026-11-21T09:10:06.574Z",
    "resolved_addresses": [
      "104.21.81.187",
      "172.67.163.100",
      "2606:4700:3033::6815:51bb",
      "2606:4700:3036::ac43:a364"
    ]
  },
  "server": {
    "name": "io.github.alexeibespalov/trident",
    "title": null,
    "description": "Create and edit collaborative architecture diagrams with any AI assistant using the Trident 2D DSL.",
    "version": "1.0.2",
    "registry_status": "active",
    "repository_url": "https://github.com/alexeibespalov/tridentpublic",
    "website_url": null,
    "published_at": "2026-05-30T21:23:14.355Z",
    "updated_at": "2026-05-30T21:23:14.355Z",
    "first_seen": "2026-11-21T09:10:06.222Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T15:41:14.129Z"
  },
  "operator": {
    "key": "tridentchart.com",
    "name": "tridentchart.com",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 3,
    "answered": 3,
    "answered_percent": 100,
    "avg_listing_latency_ms": 640,
    "first_check_in_window": "2026-11-21T14:47:02.904Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-23",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "415147cba1014204c6884e611ed474bd0bea4d31b1fe5ea96400c2ee88d00ae4",
    "tools": 23,
    "resources": 0,
    "prompts": 0,
    "first_seen": "2026-11-21T14:47:03.086Z",
    "tool_names": [
      "get_trident_spec",
      "get_generator_guide",
      "get_comprehensive_example",
      "validate_trident",
      "get_quick_start",
      "open_document",
      "get_document_summary",
      "get_recent_changes",
      "add_node",
      "update_node",
      "delete_node",
      "add_container",
      "update_container",
      "delete_container",
      "add_connection",
      "delete_connection",
      "get_document_png",
      "add_annotation",
      "update_annotation",
      "delete_annotation",
      "update_canvas_graphic",
      "make_suggestion",
      "explain"
    ],
    "declared": {
      "tools": [
        {
          "name": "get_trident_spec",
          "description": "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.",
          "inputSchema": {
            "type": "object",
            "required": [],
            "properties": {}
          },
          "annotations": {
            "title": "Trident Spec",
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "get_generator_guide",
          "description": "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).",
          "inputSchema": {
            "type": "object",
            "required": [],
            "properties": {}
          },
          "annotations": {
            "title": "Generator Guide",
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "get_comprehensive_example",
          "description": "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.",
          "inputSchema": {
            "type": "object",
            "required": [],
            "properties": {}
          },
          "annotations": {
            "title": "Comprehensive Example",
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "validate_trident",
          "description": "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.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "diagram": {
                "type": "string",
                "description": "Optional: The Trident diagram code to include context-specific validation tips"
              }
            }
          },
          "annotations": {
            "title": "Validate Diagram",
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "get_quick_start",
          "description": "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.",
          "inputSchema": {
            "type": "object",
            "required": [],
            "properties": {}
          },
          "annotations": {
            "title": "Quick Start",
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "open_document",
          "description": "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.",
          "inputSchema": {
            "type": "object",
            "required": [
              "token"
            ],
            "properties": {
              "token": {
                "type": "string",
                "description": "Access token for this document. The document ID is embedded in the token."
              },
              "agentId": {
                "type": "string",
                "description": "YOUR AI assistant name (e.g. \"Claude.ai\", \"GitHub Copilot\"). Shown as \"[agentId] working with [userName]\" in the collaboration presence dot."
              },
              "userName": {
                "type": "string",
                "description": "First name of the human you are assisting (ask them at session start if you do not know). Shown in the collaboration presence dot as \"[agentId] working with [userName]\"."
              }
            }
          },
          "annotations": {
            "title": "Open Document",
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "get_document_summary",
          "description": "Returns a complete structured summary of a Trident document as JSON: all node IDs, container IDs, connection IDs, annotation IDs, labels, and entity counts. 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.",
          "inputSchema": {
            "type": "object",
            "required": [
              "token"
            ],
            "properties": {
              "token": {
                "type": "string",
                "description": "Access token for this document. The document ID is embedded in the token."
              }
            }
          },
          "annotations": {
            "title": "Document Summary",
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "get_recent_changes",
          "description": "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.",
          "inputSchema": {
            "type": "object",
            "required": [
              "token"
            ],
            "properties": {
              "limit": {
                "type": "number",
                "description": "Optional: Maximum number of entries to return (default 100, max 500)"
              },
              "since": {
                "type": "number",
                "description": "Optional: Unix timestamp in milliseconds — only return changes after this time"
              },
              "token": {
                "type": "string",
                "description": "Access token for this document. The document ID is embedded in the token."
              }
            }
          },
          "annotations": {
            "title": "Recent Changes",
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "add_node",
          "description": "Adds a new node (entity) to a live Trident document. The node appears immediately for all collaborators. 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.",
          "inputSchema": {
            "type": "object",
            "required": [
              "token",
              "agentId",
              "node"
            ],
            "properties": {
              "node": {
                "type": "object",
                "required": [
                  "id",
                  "label"
                ],
                "properties": {
                  "x": {
                    "type": "number",
                    "description": "Optional: X position in diagram units"
                  },
                  "y": {
                    "type": "number",
                    "description": "Optional: Y position (screen coords — larger Y is lower on screen)"
                  },
                  "id": {
                    "type": "string",
                    "description": "Unique ID for the node (no spaces, e.g. \"api_server\")"
                  },
                  "card": {
                    "type": "string",
                    "description": "Optional: markdown content for an expandable info card"
                  },
                  "icon": {
                    "type": "string",
                    "description": "Optional: icon name from the Trident icon library"
                  },
                  "color": {
                    "type": "string",
                    "description": "Optional: background/fill color (hex like \"#438DD5\" or a color name). Set on THIS call — do not add the node and recolor it later with update_node."
                  },
                  "label": {
                    "type": "string",
                    "description": "Display label shown on the diagram"
                  },
                  "container": {
                    "type": "string",
                    "description": "ID of the container this node belongs in. Set this NOW if you know the parent — do not create the node orphaned and reparent later with update_node. Treat this as required whenever the node has a logical parent container. If that container has an explicit width/height (a fixed size) and this node's position falls outside it, ALSO call update_container to enlarge the container (width/height, and x/y if needed) so the node fits — containers are centred on x/y, so their edges are at x ± width/2 and y ± height/2; leave ~40 units of padding. (The canvas grows the container on screen anyway, but the document keeps the old size until you resize it.)"
                  },
                  "shapeType": {
                    "type": "string",
                    "description": "Optional: shape type. Default \"rectangle\"; \"diamond\" for decisions. Registered collections: Flowchart (\"flowchart-process\", \"flowchart-rounded\", \"flowchart-stadium\", \"flowchart-cylinder\", \"flowchart-circle\", \"flowchart-double-circle\", \"flowchart-decision\", \"flowchart-hexagon\", \"flowchart-parallelogram\", \"flowchart-trapezoid\", etc.), BPMN (\"bpmn-start-event\", \"bpmn-end-event\", \"bpmn-gateway\", \"bpmn-task\", \"bpmn-user-task\", \"bpmn-subprocess\", etc.; labels render under events/gateways), UML (\"uml-class\", \"uml-interface\", \"uml-package\", \"uml-component\", \"uml-database\", \"uml-actor\", \"uml-state\", \"uml-action\", etc.), General primitives (\"circle\", \"cylinder\", \"hexagon\", \"rounded-rect\", \"parallelogram\", \"trapezoid\", etc.), or Organic (\"cloud\", \"star\", \"heart\", etc.). Unknown values fall back to rectangle."
                  },
                  "textColor": {
                    "type": "string",
                    "description": "Optional: label text color (hex or color name), e.g. \"#FFFFFF\"."
                  },
                  "outlineColor": {
                    "type": "string",
                    "description": "Optional: border/outline color (hex or color name)."
                  }
                },
                "description": "Node definition. ERD field rows: when node.container is an ERD table (a container with kind:\"erd\"), the node becomes that table's next row — give only id, label (e.g. \"🔑 id\", \"🔗 user_id\", \"email\") and container, and do NOT pass x/y: the row is placed and the table resized for you."
              },
              "token": {
                "type": "string",
                "description": "Editor access token for this document. The document ID is embedded in the token."
              },
              "agentId": {
                "type": "string",
                "description": "YOUR AI assistant name (e.g. \"Claude.ai\", \"GitHub Copilot\"). Shown as \"[agentId] working with [userName]\" in the collaboration presence dot."
              },
              "userName": {
                "type": "string",
                "description": "First name of the human you are assisting (ask them at session start if you do not know). Shown in the collaboration presence dot as \"[agentId] working with [userName]\"."
              },
              "action_explanation": {
                "type": "string",
                "description": "Optional: brief explanation of what this action does and why (max 250 chars). Shown live to human collaborators in the AI cursor tooltip."
              }
            }
          },
          "annotations": {
            "title": "Add Node",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "update_node",
          "description": "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.",
          "inputSchema": {
            "type": "object",
            "required": [
              "token",
              "agentId",
              "nodeId",
              "changes"
            ],
            "properties": {
              "token": {
                "type": "string",
                "description": "Editor access token for this document. The document ID is embedded in the token."
              },
              "nodeId": {
                "type": "string",
                "description": "ID of the node to update"
              },
              "agentId": {
                "type": "string",
                "description": "YOUR AI assistant name (e.g. \"Claude.ai\", \"GitHub Copilot\"). Shown as \"[agentId] working with [userName]\" in the collaboration presence dot."
              },
              "changes": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  },
                  "card": {
                    "type": "string",
                    "description": "Set to empty string \"\" to remove card"
                  },
                  "icon": {
                    "type": "string"
                  },
                  "color": {
                    "type": "string",
                    "description": "Background color (hex or color name)"
                  },
                  "label": {
                    "type": "string"
                  },
                  "container": {
                    "type": "string",
                    "description": "Set to a container ID to move this node into that container; set to empty string \"\" to remove from its current container"
                  },
                  "shapeType": {
                    "type": "string",
                    "description": "Optional: shape type. \"rectangle\", \"diamond\", or a collection shape: Flowchart (\"flowchart-*\"), BPMN (\"bpmn-*\"), UML (\"uml-*\"), General primitives (\"circle\", \"cylinder\", \"hexagon\", \"rounded-rect\", etc.), or Organic (\"cloud\", \"star\", etc.)."
                  },
                  "textColor": {
                    "type": "string"
                  },
                  "outlineColor": {
                    "type": "string"
                  }
                },
                "description": "Fields to update. Only provided fields are changed."
              },
              "userName": {
                "type": "string",
                "description": "First name of the human you are assisting (ask them at session start if you do not know). Shown in the collaboration presence dot as \"[agentId] working with [userName]\"."
              },
              "action_explanation": {
                "type": "string",
                "description": "Optional: brief explanation of what this action does and why (max 250 chars). Shown live to human collaborators in the AI cursor tooltip."
              }
            }
          },
          "annotations": {
            "title": "Update Node",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "delete_node",
          "description": "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.",
          "inputSchema": {
            "type": "object",
            "required": [
              "token",
              "agentId",
              "nodeId"
            ],
            "properties": {
              "token": {
                "type": "string",
                "description": "Editor access token for this document. The document ID is embedded in the token."
              },
              "nodeId": {
                "type": "string",
                "description": "ID of the node to delete"
              },
              "agentId": {
                "type": "string",
                "description": "YOUR AI assistant name (e.g. \"Claude.ai\", \"GitHub Copilot\"). Shown as \"[agentId] working with [userName]\" in the collaboration presence dot."
              },
              "userName": {
                "type": "string",
                "description": "First name of the human you are assisting (ask them at session start if you do not know). Shown in the collaboration presence dot as \"[agentId] working with [userName]\"."
              },
              "action_explanation": {
                "type": "string",
                "description": "Optional: brief explanation of what this action does and why (max 250 chars). Shown live to human collaborators in the AI cursor tooltip."
              }
            }
          },
          "annotations": {
            "title": "Delete Node",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "add_container",
          "description": "Adds a new container (group/swimlane) to a live Trident document. 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:<table id>, 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\".",
          "inputSchema": {
            "type": "object",
            "required": [
              "token",
              "agentId",
              "container"
            ],
            "properties": {
              "token": {
                "type": "string",
                "description": "Editor access token for this document. The document ID is embedded in the token."
              },
              "agentId": {
                "type": "string",
                "description": "YOUR AI assistant name (e.g. \"Claude.ai\", \"GitHub Copilot\"). Shown as \"[agentId] working with [userName]\" in the collaboration presence dot."
              },
              "userName": {
                "type": "string",
                "description": "First name of the human you are assisting (ask them at session start if you do not know). Shown in the collaboration presence dot as \"[agentId] working with [userName]\"."
              },
              "container": {
                "type": "object",
                "required": [
                  "id",
                  "label"
                ],
                "properties": {
                  "x": {
                    "type": "number",
                    "description": "Optional: X position (required for kind:\"erd\" — the centre of the table)"
                  },
                  "y": {
                    "type": "number",
                    "description": "Optional: Y position (required for kind:\"erd\" — the centre of the table)"
                  },
                  "id": {
                    "type": "string",
                    "description": "Unique ID for the container (no spaces)"
                  },
                  "kind": {
                    "enum": [
                      "erd"
                    ],
                    "type": "string",
                    "description": "Optional: \"erd\" makes this container an ERD table (flat table: the label is the table name, child nodes are its field rows). Omit for a regular container."
                  },
                  "color": {
                    "type": "string",
                    "description": "Optional: background color (hex or color name)"
                  },
                  "label": {
                    "type": "string",
                    "description": "Display label for the container header"
                  },
                  "width": {
                    "type": "number",
                    "description": "Optional: fixed width. Omit width/height to let the container auto-size around its nodes. ERD tables default to 220; their height is managed automatically (28 header + 24 per row), so do not set it."
                  },
                  "height": {
                    "type": "number",
                    "description": "Optional: fixed height (use with width). Not for ERD tables. If you give a container a fixed size, make sure every node you add to it fits inside, or enlarge it with update_container."
                  },
                  "outlineColor": {
                    "type": "string",
                    "description": "Optional: border/outline color (hex or color name), e.g. \"#5B7A99\" for a C4 system boundary."
                  }
                }
              },
              "action_explanation": {
                "type": "string",
                "description": "Optional: brief explanation of what this action does and why (max 250 chars). Shown live to human collaborators in the AI cursor tooltip."
              }
            }
          },
          "annotations": {
            "title": "Add Container",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "update_container",
          "description": "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.",
          "inputSchema": {
            "type": "object",
            "required": [
              "token",
              "agentId",
              "containerId",
              "changes"
            ],
            "properties": {
              "token": {
                "type": "string",
                "description": "Editor access token for this document. The document ID is embedded in the token."
              },
              "agentId": {
                "type": "string",
                "description": "YOUR AI assistant name (e.g. \"Claude.ai\", \"GitHub Copilot\"). Shown as \"[agentId] working with [userName]\" in the collaboration presence dot."
              },
              "changes": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number",
                    "description": "Centre X"
                  },
                  "y": {
                    "type": "number",
                    "description": "Centre Y"
                  },
                  "color": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "width": {
                    "type": "number",
                    "description": "Fixed width — enlarge so every member node fits (edges at x ± width/2)"
                  },
                  "height": {
                    "type": "number",
                    "description": "Fixed height — enlarge so every member node fits (edges at y ± height/2)"
                  }
                }
              },
              "userName": {
                "type": "string",
                "description": "First name of the human you are assisting (ask them at session start if you do not know). Shown in the collaboration presence dot as \"[agentId] working with [userName]\"."
              },
              "containerId": {
                "type": "string",
                "description": "ID of the container to update"
              },
              "action_explanation": {
                "type": "string",
                "description": "Optional: brief explanation of what this action does and why (max 250 chars). Shown live to human collaborators in the AI cursor tooltip."
              }
            }
          },
          "annotations": {
            "title": "Update Container",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "delete_container",
          "description": "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.",
          "inputSchema": {
            "type": "object",
            "required": [
              "token",
              "agentId",
              "containerId"
            ],
            "properties": {
              "token": {
                "type": "string",
                "description": "Editor access token for this document. The document ID is embedded in the token."
              },
              "agentId": {
                "type": "string",
                "description": "YOUR AI assistant name (e.g. \"Claude.ai\", \"GitHub Copilot\"). Shown as \"[agentId] working with [userName]\" in the collaboration presence dot."
              },
              "userName": {
                "type": "string",
                "description": "First name of the human you are assisting (ask them at session start if you do not know). Shown in the collaboration presence dot as \"[agentId] working with [userName]\"."
              },
              "containerId": {
                "type": "string",
                "description": "ID of the container to delete"
              },
              "deleteNodes": {
                "type": "boolean",
                "description": "If true, also delete all nodes inside the container (default false)"
              },
              "action_explanation": {
                "type": "string",
                "description": "Optional: brief explanation of what this action does and why (max 250 chars). Shown live to human collaborators in the AI cursor tooltip."
              }
            }
          },
          "annotations": {
            "title": "Delete Container",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "add_connection",
          "description": "Adds a connection (arrow/edge) between two nodes or containers in a live Trident document. 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\".",
          "inputSchema": {
            "type": "object",
            "required": [
              "token",
              "agentId",
              "connection"
            ],
            "properties": {
              "token": {
                "type": "string",
                "description": "Editor access token for this document. The document ID is embedded in the token."
              },
              "agentId": {
                "type": "string",
                "description": "YOUR AI assistant name (e.g. \"Claude.ai\", \"GitHub Copilot\"). Shown as \"[agentId] working with [userName]\" in the collaboration presence dot."
              },
              "userName": {
                "type": "string",
                "description": "First name of the human you are assisting (ask them at session start if you do not know). Shown in the collaboration presence dot as \"[agentId] working with [userName]\"."
              },
              "connection": {
                "type": "object",
                "required": [
                  "source",
                  "target"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Optional: unique ID; auto-generated if omitted"
                  },
                  "type": {
                    "type": "string",
                    "description": "Optional: connection type. Line styles: \"arrow\" (default), \"line\", \"thick_arrow\", \"dashed_arrow\", \"dotted_arrow\", \"wave\" (avoid unless the user asks for it: renders as a thick ribbon that hides labels). ERD relationship pairs \"<source>_to_<target>\", each end one of one | many | zero_or_one | zero_or_many | one_or_many — e.g. \"one_to_many\", \"one_to_zero_or_many\", \"many_to_many\", \"one_to_one\". ERD pairs are solid lines with crow's-foot markers at each end."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional: label shown on the connection"
                  },
                  "source": {
                    "type": "string",
                    "description": "ID of the source node"
                  },
                  "target": {
                    "type": "string",
                    "description": "ID of the target node"
                  },
                  "routingMode": {
                    "type": "string",
                    "description": "Optional: routing algorithm: \"straight\" (default), \"bezier\", or \"orthogonal\". Avoid \"orthogonal\" unless the user asks for it: edges on one side of a node share a single port, so right-angle paths overlap."
                  }
                }
              },
              "action_explanation": {
                "type": "string",
                "description": "Optional: brief explanation of what this action does and why (max 250 chars). Shown live to human collaborators in the AI cursor tooltip."
              }
            }
          },
          "annotations": {
            "title": "Add Connection",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "delete_connection",
          "description": "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.",
          "inputSchema": {
            "type": "object",
            "required": [
              "token",
              "agentId"
            ],
            "properties": {
              "token": {
                "type": "string",
                "description": "Editor access token for this document. The document ID is embedded in the token."
              },
              "source": {
                "type": "string",
                "description": "Source node ID (use with target if connectionId unknown)"
              },
              "target": {
                "type": "string",
                "description": "Target node ID (use with source if connectionId unknown)"
              },
              "agentId": {
                "type": "string",
                "description": "YOUR AI assistant name (e.g. \"Claude.ai\", \"GitHub Copilot\"). Shown as \"[agentId] working with [userName]\" in the collaboration presence dot."
              },
              "userName": {
                "type": "string",
                "description": "First name of the human you are assisting (ask them at session start if you do not know). Shown in the collaboration presence dot as \"[agentId] working with [userName]\"."
              },
              "connectionId": {
                "type": "string",
                "description": "ID of the connection to delete (preferred)"
              },
              "action_explanation": {
                "type": "string",
                "description": "Optional: brief explanation of what this action does and why (max 250 chars). Shown live to human collaborators in the AI cursor tooltip."
              }
            }
          },
          "annotations": {
            "title": "Delete Connection",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "get_document_png",
          "description": "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.",
          "inputSchema": {
            "type": "object",
            "required": [
              "token"
            ],
            "properties": {
              "token": {
                "type": "string",
                "description": "Access token for this document. The document ID is embedded in the token."
              }
            }
          },
          "annotations": {
            "title": "Export as PNG",
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "add_annotation",
          "description": "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.",
          "inputSchema": {
            "type": "object",
            "required": [
              "token",
              "agentId",
              "annotation"
            ],
            "properties": {
              "token": {
                "type": "string",
                "description": "Editor access token for this document."
              },
              "agentId": {
                "type": "string",
                "description": "YOUR AI assistant name (e.g. \"Claude.ai\", \"GitHub Copilot\"). Shown as \"[agentId] working with [userName]\" in the collaboration presence dot."
              },
              "userName": {
                "type": "string",
                "description": "First name of the human you are assisting (ask them at session start if you do not know). Shown in the collaboration presence dot as \"[agentId] working with [userName]\"."
              },
              "annotation": {
                "type": "object",
                "required": [
                  "id",
                  "content",
                  "x",
                  "y"
                ],
                "properties": {
                  "x": {
                    "type": "number",
                    "description": "X position in diagram units"
                  },
                  "y": {
                    "type": "number",
                    "description": "Y position in diagram units"
                  },
                  "id": {
                    "type": "string",
                    "description": "Unique ID (no spaces, e.g. \"note_observability\")"
                  },
                  "bold": {
                    "type": "boolean",
                    "description": "Optional: bold text"
                  },
                  "align": {
                    "type": "string",
                    "description": "Optional: text alignment — \"left\", \"center\", or \"right\""
                  },
                  "color": {
                    "type": "string",
                    "description": "Optional: background color (hex or color name)"
                  },
                  "style": {
                    "type": "string",
                    "description": "Optional: \"stickyNote\" (default, post-it card look) or \"textBody\" (plain transparent text, good for titles/labels)"
                  },
                  "width": {
                    "type": "number",
                    "description": "Optional: width in diagram units (default auto)"
                  },
                  "height": {
                    "type": "number",
                    "description": "Optional: height in diagram units (default auto)"
                  },
                  "italic": {
                    "type": "boolean",
                    "description": "Optional: italic text"
                  },
                  "content": {
                    "type": "string",
                    "description": "Text content. Use \\n for line breaks."
                  },
                  "fontSize": {
                    "type": "number",
                    "description": "Optional: font size in points"
                  },
                  "textColor": {
                    "type": "string",
                    "description": "Optional: text color"
                  },
                  "underline": {
                    "type": "boolean",
                    "description": "Optional: underlined text"
                  },
                  "outlineColor": {
                    "type": "string",
                    "description": "Optional: border color"
                  },
                  "strikethrough": {
                    "type": "boolean",
                    "description": "Optional: strikethrough text"
                  }
                },
                "description": "Annotation definition"
              },
              "action_explanation": {
                "type": "string",
                "description": "Optional: brief explanation of what this action does and why (max 250 chars). Shown live to human collaborators in the AI cursor tooltip."
              }
            }
          },
          "annotations": {
            "title": "Add Annotation",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "update_annotation",
          "description": "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.",
          "inputSchema": {
            "type": "object",
            "required": [
              "token",
              "agentId",
              "annotationId",
              "changes"
            ],
            "properties": {
              "token": {
                "type": "string",
                "description": "Editor access token for this document."
              },
              "agentId": {
                "type": "string",
                "description": "YOUR AI assistant name (e.g. \"Claude.ai\", \"GitHub Copilot\"). Shown as \"[agentId] working with [userName]\" in the collaboration presence dot."
              },
              "changes": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  },
                  "bold": {
                    "type": "boolean"
                  },
                  "align": {
                    "type": "string"
                  },
                  "color": {
                    "type": "string"
                  },
                  "style": {
                    "type": "string"
                  },
                  "width": {
                    "type": "number"
                  },
                  "height": {
                    "type": "number"
                  },
                  "italic": {
                    "type": "boolean"
                  },
                  "content": {
                    "type": "string"
                  },
                  "fontSize": {
                    "type": "number"
                  },
                  "textColor": {
                    "type": "string"
                  },
                  "underline": {
                    "type": "boolean"
                  },
                  "outlineColor": {
                    "type": "string"
                  },
                  "strikethrough": {
                    "type": "boolean"
                  }
                },
                "description": "Fields to update. Only provided fields are changed."
              },
              "userName": {
                "type": "string",
                "description": "First name of the human you are assisting (ask them at session start if you do not know). Shown in the collaboration presence dot as \"[agentId] working with [userName]\"."
              },
              "annotationId": {
                "type": "string",
                "description": "ID of the annotation to update"
              },
              "action_explanation": {
                "type": "string",
                "description": "Optional: brief explanation of what this action does and why (max 250 chars). Shown live to human collaborators in the AI cursor tooltip."
              }
            }
          },
          "annotations": {
            "title": "Update Annotation",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "delete_annotation",
          "description": "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.",
          "inputSchema": {
            "type": "object",
            "required": [
              "token",
              "agentId",
              "annotationId"
            ],
            "properties": {
              "token": {
                "type": "string",
                "description": "Editor access token for this document."
              },
              "agentId": {
                "type": "string",
                "description": "YOUR AI assistant name (e.g. \"Claude.ai\", \"GitHub Copilot\"). Shown as \"[agentId] working with [userName]\" in the collaboration presence dot."
              },
              "userName": {
                "type": "string",
                "description": "First name of the human you are assisting (ask them at session start if you do not know). Shown in the collaboration presence dot as \"[agentId] working with [userName]\"."
              },
              "annotationId": {
                "type": "string",
                "description": "ID of the annotation to delete"
              },
              "action_explanation": {
                "type": "string",
                "description": "Optional: brief explanation of what this action does and why (max 250 chars). Shown live to human collaborators in the AI cursor tooltip."
              }
            }
          },
          "annotations": {
            "title": "Delete Annotation",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "update_canvas_graphic",
          "description": "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 <id> \"<url>\" 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.",
          "inputSchema": {
            "type": "object",
            "required": [
              "token",
              "agentId",
              "canvasGraphicId",
              "changes"
            ],
            "properties": {
              "token": {
                "type": "string",
                "description": "Editor access token for this document."
              },
              "agentId": {
                "type": "string",
                "description": "YOUR AI assistant name (e.g. \"Claude.ai\", \"GitHub Copilot\")."
              },
              "changes": {
                "type": "object",
                "required": [],
                "properties": {
                  "x": {
                    "type": "number",
                    "description": "New top-left X position in canvas units."
                  },
                  "y": {
                    "type": "number",
                    "description": "New top-left Y position in canvas units."
                  },
                  "width": {
                    "type": "number",
                    "description": "New width in canvas units. Increase this to scale the map up."
                  },
                  "height": {
                    "type": "number",
                    "description": "New height in canvas units. Increase this to scale the map up."
                  },
                  "aspectLock": {
                    "type": "boolean",
                    "description": "Lock aspect ratio on resize (default true)."
                  }
                },
                "description": "Geometry fields to update. Only provided fields are changed; all others are preserved."
              },
              "userName": {
                "type": "string",
                "description": "First name of the human you are assisting."
              },
              "canvasGraphicId": {
                "type": "string",
                "description": "ID of the canvas graphic to update (from open_document output)."
              },
              "action_explanation": {
                "type": "string",
                "description": "Optional: brief explanation shown live to human collaborators (max 250 chars)."
              }
            }
          },
          "annotations": {
            "title": "Update Canvas Graphic",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "make_suggestion",
          "description": "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.",
          "inputSchema": {
            "type": "object",
            "required": [
              "token",
              "agentId",
              "userName",
              "suggestion"
            ],
            "properties": {
              "token": {
                "type": "string",
                "description": "Viewer or editor access token for this document."
              },
              "agentId": {
                "type": "string",
                "description": "YOUR AI assistant name (e.g. \"Claude.ai\", \"GitHub Copilot\"). Shown as \"[agentId] working with [userName]\" in the collaboration presence dot."
              },
              "entityId": {
                "type": "string",
                "description": "ID of the node or container this suggestion relates to. Always provide this when the suggestion concerns a specific element — it moves the AI cursor to that element so collaborators know exactly what you are referring to."
              },
              "userName": {
                "type": "string",
                "description": "First name of the human you are assisting."
              },
              "suggestion": {
                "type": "string",
                "description": "The suggestion text to show to human collaborators (max 500 chars). Be concise and actionable."
              }
            }
          },
          "annotations": {
            "title": "Make Suggestion",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "explain",
          "description": "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.",
          "inputSchema": {
            "type": "object",
            "required": [
              "token",
              "agentId",
              "userName",
              "explanation"
            ],
            "properties": {
              "token": {
                "type": "string",
                "description": "Viewer or editor access token for this document."
              },
              "agentId": {
                "type": "string",
                "description": "YOUR AI assistant name (e.g. \"Claude.ai\", \"GitHub Copilot\"). Shown as \"[agentId] working with [userName]\" in the collaboration presence dot."
              },
              "entityId": {
                "type": "string",
                "description": "ID of the node or container being explained. Always provide this when explaining a specific element — it moves the AI cursor to that element so collaborators can follow along."
              },
              "userName": {
                "type": "string",
                "description": "First name of the human you are assisting."
              },
              "explanation": {
                "type": "string",
                "description": "The explanation text to deliver to human collaborators (max 1000 chars)."
              }
            }
          },
          "annotations": {
            "title": "Explain Element",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [],
      "prompts": []
    },
    "instructions": "You are connected to the Trident collaborative diagramming platform.\n\nPICK THE MODE FIRST — it decides whether you need the generator guide:\n- LIVE SESSION (the human gave you a document access token or wants to watch the diagram being built in Trident): build and edit with the document tools (open_document, add_container, add_node, add_connection, …). Do NOT call get_generator_guide up front — these instructions and the tool descriptions (including the shapeType catalog on add_node) cover live editing. Open it only when you need conventions you can't infer from the document (BPMN/UML/flowchart layout, ERD rules, C4 palette). get_quick_start is the cheap syntax refresher.\n- MARKUP GENERATION (no live document; you hand back Trident code as text): ALWAYS call get_generator_guide first — it contains critical rules, spacing guidelines, and error prevention. Without it you will produce incorrect output. If you need deeper syntax understanding, call get_trident_spec. For a quick overview, call get_quick_start.\n\nBEFORE using any document tool, ask the human their first name: \"What's your name?\" Use it to personalise every interaction and pass it as the userName field on every tool call.\n\nWhen calling any tool with an agentId parameter, set it to YOUR OWN AI assistant name (e.g. \"Claude.ai\", \"GitHub Copilot\", \"Gemini\"). Never use \"AI Agent\" or leave it blank.\n\nThe userName field is the human's first name as they told you. Together agentId + userName produce the collaboration presence label: \"GitHub Copilot working with Alexei\".\n\nWhen explaining actions via action_explanation, address the user by name and keep it concise (e.g. \"Adding a load balancer node for Alexei's API tier\").\n\nSTAYING IN SYNC WITH OTHER COLLABORATORS:\n- Many tool responses (open_document, get_document_summary, add_node, update_node, etc.) may include a \"changesSinceYourLast\" field listing edits made by OTHER collaborators since your last tool call. The DSL returned by open_document carries the same information as a leading \"%% changes-since-your-last:\" comment block.\n- When this field is present and non-empty, treat it as fresh news: someone else changed the diagram between your previous and current actions. Read the entries before planning your next mutations so you don't overwrite or duplicate their work.\n- Absence of the field means no relevant changes since your last call (or this is your first call — in which case open_document gives you the full state).\n- The field only reports changes that happened BETWEEN your tool calls. While you are deliberating between calls, more edits may be in flight — do not assume the diagram is frozen.\n\nGRID LAYOUT — read this before placing containers in a grid:\n- Estimate each container's OWN node count before placing anything. A container with 2 nodes in 1 row occupies ~280 wide × ~130 tall units. A container with 6 nodes across 3 rows occupies ~280 wide × ~480 tall.\n- Set spacing per row/column based on THAT row/column's actual content, not the largest container in the grid. Never use uniform spacing sized for the biggest case.\n- Node spacing within a container: ~120 units horizontal, ~160 units vertical between nodes.\n- Container-to-container gap: 60–100 units of clear space between container edges — NOT between their origin points.\n- Formula: next_container_x = prev_container_x + prev_container_width + 80. Same logic for Y.\n- If one container will have significantly more nodes than the others in its row, give that ROW extra vertical space; keep other rows tight.\n\nCONNECTION STYLE:\n- Default to plain arrows (\"arrow\"). Use \"dashed_arrow\" for async/eventual flows and \"thick_arrow\" for the critical path.\n- Do NOT use \"wave\" unless the user explicitly asks for it: it renders as a thick filled ribbon that hides labels and nearby edges.\n- Do NOT set routingMode \"orthogonal\" unless the user explicitly asks for it: every edge leaving one side of a node shares a single port, so right-angle paths stack on top of each other and are har"
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}