Skip to main content
Glama

next_step

Return the next step for a flow. Pass the goal (flow id) and the id of the last completed step (omit after for the first step). Run each step's detect command FIRST and skip the run command when detection passes. The design step also returns that flow's complete starter ALTER_INTEGRATION.md.

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

Input Schema

NameRequiredDescriptionDefault
goalYesThe flow id (setup goal or modify operation).
afterNoId of the last completed step (e.g. "2", "3a").

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / goal / enum
      Previous value: -[
      -  "user-data",
      -  "backend-secret",
      -  "agent",
      -  "add-provider",
      -  "add-secret",
      -  "add-agent",
      -  "rotate-key",
      -  "manage-grant",
      -  "set-policy"
      -]New value: +[
      +  "user-data",
      +  "backend-secret",
      +  "end-user-key",
      +  "agent",
      +  "add-provider",
      +  "add-secret",
      +  "add-agent",
      +  "rotate-key",
      +  "manage-grant",
      +  "set-policy"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / goal / enum
      Previous value: -[
      -  "user-data",
      -  "backend-secret",
      -  "agent",
      -  "add-provider",
      -  "add-secret",
      -  "add-agent",
      -  "rotate-key",
      -  "manage-grant"
      -]New value: +[
      +  "user-data",
      +  "backend-secret",
      +  "agent",
      +  "add-provider",
      +  "add-secret",
      +  "add-agent",
      +  "rotate-key",
      +  "manage-grant",
      +  "set-policy"
      +]
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose real behavior: the detect-before-run protocol, the iteration model via `after`, and the conditional fact that the design step returns an entire ALTER_INTEGRATION.md starter document (a meaningful context-cost signal). It does not say what happens at the end of a flow, how an invalid `after` is handled, or otherwise characterize termination/error behavior.

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?

Four tight sentences, front-loaded with purpose and the parameter contract, followed by the execution protocol and a conditional payload note. Every sentence carries information an agent needs, and there is no filler or repetition.

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 tool with no annotations and no output schema, the description covers purpose, iteration, and execution protocol well, including the notable extra return of the starter document. It remains incomplete on the shape of a step object and on how the agent knows the flow has ended.

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%, so baseline is 3; the description largely restates the schema's field docs ('goal' = flow id, 'after' = last completed step id). It adds one genuinely new semantic rule, that `after` should be omitted for the first step, but adds nothing about the expected `after` format beyond the schema's examples or the consequences of a bad value.

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 verb and resource: 'Return the next step for a flow', and clarifies that the flow is identified by the `goal` id. It is clearly distinguishable from sibling tools like list_phases or get_started, which do not return per-flow step sequencing, though it never names those siblings 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 gives explicit procedural context: start by omitting `after`, then pass the id of the last completed step to advance. It also explains how to act on the result (run the detect command before the run command and skip the run when detection passes). It stops short of stating when to prefer this over alternatives such as list_phases or get_started.

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.

Resources