Skip to main content
Glama

add_dependency

Adds one dependency (arrow) between two existing org blocks. Type 'business' (the default, dashed unless style says otherwise) is a business relation between two blocks, whether or not one is the parent of the other: an ownership share (a stake of any size, including a stake held by a parent in its own child), a lease, a service. Type 'structural' (solid) is a hierarchy link; parent/child arrows are created automatically by add_cell (with parentId) and move_cell, so a hand-made structural arrow is only needed where those do not apply: typically a parent in 'hat' mode, whose children are root blocks without parentId. Not for the relations between ERD fields (add_relation) nor for the flows of arch/process/journey/captable diagrams (connect_kind_nodes). REFUSED, nothing written, when the id already exists, when fromId equals toId, or when either block is unknown. Per-arrow appearance: style, animated, color (ColorKey), strokeWidth, fromAnchor/toAnchor. shares (default 0) is the ownership percentage the arrow carries: the group ownership look-through (compute_group_ownership) reads it on 'business' arrows only, and ignores a value that is zero, negative or greater than one hundred (the percentage is then read from the label). An existing arrow is changed with update_dependency (type included) and removed with delete_dependency.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>",
      "fromId": "<fromId>",
      "toId": "<toId>"
    },
    "name": "add_dependency"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesUnique ID of the new dependency
toIdYesID of the destination block
typeNobusiness = dashed business arrow, structural = solid hierarchy
colorNoStroke color (ColorKey palette)
labelNoText on the arrow
styleNo
fromIdYesID of the source block
sharesNoOwnership percentage carried by the arrow (default 0); read by compute_group_ownership on 'business' arrows only, a value that is zero, negative or greater than one hundred being ignored
animatedNoEnables the 'dash flow' animation on the arrow
toAnchorNoDestination anchor point
fromAnchorNoSource anchor point
strokeWidthNoStroke width in px (≈ 0.5 to 8)
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"Unique ID (e.g. 'dep-coretech-aaas')"New value: +"Unique ID of the new dependency"
  2. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."New value: +"UUID of the project THIS call targets (overrides the session project)."
  3. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."New value: +"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."
  4. Changed1 schema field changed
    • changedInput schema / properties / shares / description
      Previous value: -"Sharing percentage (for cascades)"New value: +"Ownership percentage carried by the arrow (default 0); read by compute_group_ownership on 'business' arrows only, a value that is zero, negative or greater than one hundred being ignored"
  5. Changed12 schema fields changed
    • changedInput schema / properties / animated / description
      Previous value: -"Active l'animation 'flux de tirets' sur la flèche"New value: +"Enables the 'dash flow' animation on the arrow"
    • changedInput schema / properties / color / description
      Previous value: -"Couleur du trait (palette ColorKey)"New value: +"Stroke color (ColorKey palette)"
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID du projet visé par CET appel. Cible RÉELLEMENT ce projet au lieu du projet de session. Refusé sans rien modifier si l'accès n'est pas accordé."New value: +"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."
    • changedInput schema / properties / fromAnchor / description
      Previous value: -"Point d'ancrage source"New value: +"Source anchor point"
    • changedInput schema / properties / fromId / description
      Previous value: -"ID de la cellule source"New value: +"ID of the source block"
    • changedInput schema / properties / id / description
      Previous value: -"ID unique (ex: 'dep-coretech-aaas')"New value: +"Unique ID (e.g. 'dep-coretech-aaas')"
    • changedInput schema / properties / label / description
      Previous value: -"Texte sur la flèche"New value: +"Text on the arrow"
    • changedInput schema / properties / shares / description
      Previous value: -"Pourcentage de partage (pour cascades)"New value: +"Sharing percentage (for cascades)"
    • changedInput schema / properties / strokeWidth / description
      Previous value: -"Épaisseur du trait en px (≈ 0.5 à 8)"New value: +"Stroke width in px (≈ 0.5 to 8)"
    • changedInput schema / properties / toAnchor / description
      Previous value: -"Point d'ancrage destination"New value: +"Destination anchor point"
    • changedInput schema / properties / toId / description
      Previous value: -"ID de la cellule destination"New value: +"ID of the destination block"
    • changedInput schema / properties / type / description
      Previous value: -"business = flèche tiretée métier, structural = hiérarchie solide"New value: +"business = dashed business arrow, structural = solid hierarchy"
  6. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations mark this as a non-readonly, non-destructive write; the description goes well beyond that by stating the call is REFUSED and nothing is written when the id already exists, fromId equals toId, or a block is unknown. It also discloses that parent/child structural arrows are auto-created elsewhere and that mutation afterwards happens via update_dependency/delete_dependency, which is real behavioral context rather than a restatement of hints.

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

Conciseness4/5

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

Purpose is front-loaded in the first sentence, followed by type semantics, exclusion cases, refusal conditions, appearance, then mutation siblings — a sensible order. It is dense and a few clauses (e.g. the repeated look-through/ignore rule for shares) could be trimmed, but almost every sentence carries routing or constraint information.

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

Completeness5/5

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

With 13 parameters and no output schema, the description covers creation semantics, refusal/atomicity behavior, the intersection with auto-generated structural arrows, and the follow-up tools for editing and deletion. Nothing an agent needs in order to invoke this correctly — or to avoid invoking it wrongly — is missing.

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

Parameters4/5

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

Schema coverage is already 92%, but the description adds meaning the enum text does not: 'business' is dashed by default unless style overrides it, 'structural' is solid, and shares is only meaningful on business arrows and is ignored when zero, negative or above one hundred. The shares wording overlaps the schema's own description, and color/animated/strokeWidth/anchors are only name-checked as 'per-arrow appearance', so it is strong but not fully additive.

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?

Opens with a specific verb and resource ('Adds one dependency (arrow) between two existing org blocks') and immediately splits the two types it can create. It explicitly distinguishes itself from add_relation, connect_kind_nodes, update_dependency and delete_dependency, so an agent can route correctly without opening any other schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use rules for each type: 'business' for ownership/lease/service relations regardless of parentage, 'structural' only where add_cell(parentId) and move_cell do not apply, typically a 'hat' mode parent. It also names the sibling tools for the excluded cases, which is exactly the routing information an agent needs.

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.