Skip to main content
Glama

next_step

Returns workflow steps that are ready to execute now by resolving dependencies, so you can start each action and then mark steps complete to drive the run loop.

Instructions

编译依赖图,返回当前可立即执行(READY)的步骤。这是执行循环的入口:next_step → 做事 → complete_step → 循环。

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

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden. It discloses that a dependency graph is compiled, which hints at non-trivial backend work, but never says whether the call is read-only or mutates run state, whether repeated calls are safe, or what a READY result looks like. 'Compile' is suggestive but not a substitute for stating side effects.

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?

Two short sentences, front-loaded with the behavior and followed by the loop context. Nothing is redundant, though the arrow notation is terse enough that the return semantics remain implicit.

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

Completeness2/5

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

There is no output schema, no annotations, and no schema descriptions for the single parameter. For a tool whose whole value is deciding what is executable next, the description should at least sketch the return shape (list of step objects, empty case) and identify the 'id' argument; neither is present.

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

Parameters2/5

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

There is one required parameter 'id' with 0% schema description coverage, and the description never mentions it. The agent cannot tell from either source whether it is a run id, workflow id, or something else, so the description does not compensate for the schema gap.

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 action pair — compiling the dependency graph and returning steps that are READY — so the agent knows this is a readiness query, not a mutation. It also positions the tool as the loop entry point, which distinguishes it from complete_step/skip_step. It does not say what resource the 'id' refers to, so it falls short of full differentiation.

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 execution cycle 'next_step → do work → complete_step → loop' tells the agent exactly when to call this: at the start of each iteration, before doing work. There are no explicit exclusions (e.g., when not to call, or what to do if nothing is READY), so it is clear context rather than complete routing guidance.

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