Skip to main content
Glama

hub_trajectory

Computes a deterministic dependency-graph plan from task depends_on links, returning ready tasks, blockers, unlock layers, critical path, and cycles to show actual task order and path to milestone.

Instructions

Deterministic dependency-graph plan over tasks' depends_on — the probable trajectory as a critical PATH, not an ML forecast. Returns: ready (doable now, no open deps), blocked (with waitingOn ids), layers (Kahn topo-order — what unlocks when), criticalPath (longest dependency chain = ordering bound), cycles (dependency loops to fix). A task only the owner may move (owner_kind "human", or assigned to a declared owner role) is not agent work: it is counted as ownerOnly and leaves the graph, so a task behind it is unblocked, not cyclic. Use to see "given deps, what is the actual order / what is the critical path to a milestone". Weight is task-count now; weighted by real durations once logd records them.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "hub_trajectory"
  }
}

Input Schema

NameRequiredDescriptionDefault
fullNoreturn everything, uncapped. By default long lists are trimmed (and, where the description says so, long texts cut) to fit an agent context, and what was left out is reported in `truncated`.
projectNooptional: restrict the graph to one project

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.9.88
    • changedInput schema / properties / full / description
      Previous value: -"return everything, uncapped. By default long lists are trimmed to fit an agent context and what was left out is reported in `truncated`."New value: +"return everything, uncapped. By default long lists are trimmed (and, where the description says so, long texts cut) to fit an agent context, and what was left out is reported in `truncated`."
  2. Changed1 schema field changedv0.9.0
    • addedInput schema / properties / full
      Added value: +{
      +  "description": "return everything, uncapped. By default long lists are trimmed to fit an agent context and what was left out is reported in `truncated`.",
      +  "type": "boolean"
      +}
  3. Addedv0.5.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it discloses the key return categories and edge-case semantics: ready, blocked with waitingOn, topo layers, criticalPath, cycles, and ownerOnly removal. It does not explicitly state read-only/no side effects, auth needs, or rate limits, so it is strong but not exhaustive.

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?

The description is front-loaded with the core definition and then lists returns and a key edge case, with no filler. It is dense but appropriately sized for a graph-planning tool.

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?

No output schema exists, so the description must explain returns, and it names and interprets the main result fields plus ownerOnly behavior. Minor gaps remain around truncation/full behavior and explicit non-mutation, but the core is complete enough for invocation.

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 coverage is 100% and both parameters are documented in the schema; the description adds no syntax or behavior for full or project. Baseline 3 is appropriate because the schema already carries parameter meaning.

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 states a specific operation and resource: a deterministic dependency-graph plan over tasks' depends_on, expressed as a critical path. It also preempts confusion by saying this is not an ML forecast, but it does not explicitly distinguish the tool from siblings such as hub_graph or hub_next.

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 gives a clear usage condition: use it to see the actual order given deps or the critical path to a milestone. There are no explicit when-not conditions or named alternative tools, so it is clear context but not full routing guidance.

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