Skip to main content
Glama

add_connection

Adds a connection (arrow/edge) between two nodes in a live Trident document. Use get_document_summary to get valid source and target node IDs before calling this. Requires a valid editor access token.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenYesEditor access token for this document. The document ID is embedded in the token.
agentIdYesYOUR AI assistant name (e.g. "Claude.ai", "GitHub Copilot"). Shown as "[agentId] working with [userName]" in the collaboration presence dot.
userNameNoFirst 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]".
connectionYes
action_explanationNoOptional: brief explanation of what this action does and why (max 250 chars). Shown live to human collaborators in the AI cursor tooltip.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / connection / properties / routingMode / description
      Previous value: -"Optional: routing algorithm (e.g. \"straight\", \"orthogonal\")"New value: +"Optional: routing algorithm (e.g. \"straight\", \"bezier\", \"orthogonal\")"
    • changedInput schema / properties / connection / properties / type / description
      Previous value: -"Optional: connection type (e.g. \"dotted\", \"dashed\", \"bold\")"New value: +"Optional: connection type (e.g. \"dotted\", \"dashed\", \"bold\", \"wave\")"
  2. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already indicate readOnlyHint=false and destructiveHint=false. The description adds that it operates on a 'live' document and requires a valid token, but does not elaborate on side effects, reversibility, or failure behavior. It does not contradict annotations and adds some context, but could disclose more about mutation consequences.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences that front-load the action and include a prerequisite and requirement. No redundant phrasing, every sentence contributes.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a relatively simple add operation with a nested object and no output schema, the description covers the essential use case: purpose, prerequisites, and access requirements. It could mention how to obtain the token or what happens with invalid IDs, but the schema and context (live document) make it sufficiently complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 80% (only the nested 'connection' object lacks an explicit description). The description adds the meaning 'arrow/edge' and references source/target IDs, but the schema already explains most parameters. The added value is marginal, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's action: 'Adds a connection (arrow/edge) between two nodes in a live Trident document.' This uses a specific verb (adds) and resource (connection) and distinguishes it from siblings like add_node and add_annotation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides a clear prerequisite: 'Use get_document_summary to get valid source and target node IDs before calling this.' It also notes the requirement for a valid editor access token. While it doesn't explicitly discuss alternatives or when not to use the tool, the guidance is actionable and contextually grounded.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.