Skip to main content
Glama

list_thread_dependencies

Read-onlyIdempotent

Shows the tasks a thread depends on and whether all dependencies are closed or archived, revealing if it is ready to run.

Instructions

List the threads a task depends on and whether the task is ready to run. Returns {dependencies: a list of {thread_id, depends_on_thread_id, created_at}, ready}; ready is true when every dependency is closed or archived, and also when there are none. A thread that is not ready is not handed out by claim_next. Add and remove edges with add_thread_dependency and remove_thread_dependency, and use list_thread_dependents for the reverse direction. Requires workspace:read.

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>"
    },
    "name": "list_thread_dependencies"
  }
}

Input Schema

NameRequiredDescriptionDefault
thread_idYesUUID of the task thread whose dependencies to list. You must be able to read it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv479.0.2
    • addedInput schema / properties / thread_id / description
      Added value: +"UUID of the task thread whose dependencies to list. You must be able to read it."
  2. First observedv479.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent and non-destructive, so the safety profile is covered; the description adds real value beyond that with the return shape ({dependencies, ready}), the readiness definition (all dependencies closed or archived, vacuously true when empty), and the auth requirement ('Requires workspace:read'). It does not address ordering or size limits on the dependency list, which is the only notable gap.

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

Conciseness3/5

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

Three sentences, front-loaded with the purpose and return contract, and each sentence carries information: return shape, readiness semantics, and sibling routing plus auth. It is dense but not padded, so it earns a solid score without being exemplary.

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, the description compensates by spelling out the return structure and the meaning of the ready flag, and it discloses the workspace:read requirement. Combined with a fully documented single parameter and clear annotations, an agent has enough to call this correctly; only edge behavior on very large dependency lists is unstated.

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% and the single thread_id parameter is already documented as a UUID with a readability precondition. The description adds no further meaning about the parameter itself, so the baseline 3 applies rather than credit for extra semantics.

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 ('List the threads a task depends on') plus the scope of what it answers ('whether the task is ready to run'). It also implicitly separates itself from the reverse-direction sibling by naming list_thread_dependents later, so an agent can pick the right tool without opening a schema.

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?

Gives concrete routing guidance: add/remove edges via add_thread_dependency and remove_thread_dependency, and use list_thread_dependents for the reverse direction. It also supplies the operative context that a non-ready thread is not handed out by claim_next, which tells the agent when this check matters. It stops short of an explicit when-not-to-use statement, so it is not a 5.

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