Skip to main content
Glama

add_dependency

Idempotent

Create a dependency between two nodes in a Nodeon project. The target node won't be available for building until the source node is complete. Use this to connect discovered subtasks to the graph or to restructure dependencies.

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": {
      "project_id": "<project_id>",
      "source_node_id": "<source_node_id>",
      "target_node_id": "<target_node_id>"
    },
    "name": "add_dependency"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoOptional label for the dependency (e.g., 'requires', 'informs', 'blocks').
project_idYesThe project ID.
source_node_idYesThe node that must be completed first (the dependency).
target_node_idYesThe node that depends on the source (won't be available until source is done).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, idempotent, non-destructive, closed-world mutation. The description adds genuine behavioral context beyond that: the blocking semantics of the edge, i.e. the target cannot be built until the source is complete. It does not mention cycle handling, failure modes, or whether duplicate edges are merged/rejected, which idempotentHint only partially covers.

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?

Three tight sentences: what it does, what it means behaviorally, and when to reach for it. The effect statement is front-loaded and nothing is redundant.

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?

With no output schema, annotations covering the safety profile, and full schema coverage, the description supplies the key missing piece an agent needs: the direction and consequence of the edge. It falls short only on edge cases (self-loops, cycles, duplicate edges) that a mutation tool would ideally address.

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 100%, so all four parameters are already documented, including the source/target roles. The description reinforces the direction semantics in prose but adds no format, constraint, or edge-case meaning beyond the schema; baseline 3 applies.

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

Purpose4/5

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

The description gives a specific verb and resource ("Create a dependency between two nodes") plus the semantic direction (target blocked until source completes). It implicitly contrasts with remove_dependency but never names any sibling explicitly.

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?

It supplies concrete when-to-use cases: connecting discovered subtasks to the graph, or restructuring existing dependencies. It offers no when-not guidance or named alternative (e.g., add_constraint, remove_dependency), leaving selection to inference.

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.