Skip to main content
Glama

add_thread_dependency

Idempotent

Creates a task-dependency edge to block a thread from being claimed until its prerequisite reaches a terminal state; both threads must share a workspace.

Instructions

Add a task-dependency edge: the thread depends on depends_on_thread_id and stays blocked (won't be handed out by claim_next) until that dependency reaches a terminal state. Both threads must be in the same workspace.

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": {
      "thread_id": "<thread_id>",
      "depends_on_thread_id": "<depends_on_thread_id>"
    },
    "name": "add_thread_dependency"
  }
}

Input Schema

NameRequiredDescriptionDefault
thread_idYesthe dependent task
depends_on_thread_idYesthe task it depends on

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), the description discloses real behavior: the dependent thread is excluded from claim_next until the dependency terminates, and both threads must share a workspace. It does not say what happens on a cross-workspace attempt or a cyclic dependency, which is the main remaining behavioral gap for a graph mutation.

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 compact sentences with the core edge semantics front-loaded and the workspace precondition trailing. Every clause carries non-redundant information; nothing is padding.

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 two-parameter, non-destructive mutation with no output schema, the description covers purpose, precondition, and blocking effect, while annotations carry idempotency and safety. It is nearly complete, missing only error/edge-case behavior (cycles, cross-workspace failure) that an agent would otherwise have to discover by calling.

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 description coverage is already 100% ('the dependent task' / 'the task it depends on'), so the baseline is 3. The description contributes extra meaning by tying the semantics of depends_on_thread_id to observable consequences (blocking, claim_next exclusion) rather than just restating the direction of the edge.

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?

States a specific verb and resource ('Add a task-dependency edge') and immediately defines the graph semantics: thread_id depends on depends_on_thread_id. The add/remove pairing with the sibling remove_thread_dependency is implicit in the verb, and no schema opening is needed to know what the tool does.

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?

The blocking consequence ('stays blocked ... until that dependency reaches a terminal state') tells an agent exactly the situation this tool is for, and the same-workspace constraint is stated as a hard precondition. It stops short of naming alternatives such as list_thread_dependencies for inspection or remove_thread_dependency for undo, so it is clear context rather than explicit routing.

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

Deploy Server

Other Tools