Skip to main content
Glama

mcpforx

next_step

Report the result of the current expertise step and receive the next instruction. Pass the run_id from find_expertise and your result as a JSON object matching the expected_output fields shown in the previous step. IMPORTANT: when a step's response says you're 'Entering sub-expertise ...', it hands you a DIFFERENT run_id for a nested run — always call next_step with whichever run_id the most recent response gave you, not the original one. When the sub-expertise completes, the response will say 'Resuming parent run' and automatically continue the original run in the same reply — you don't need to do anything special, just keep calling next_step with the current run_id as usual.

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

Input Schema

NameRequiredDescriptionDefault
resultYesYour result as a JSON object with the fields specified in the previous step instruction.
run_idYesThe run_id returned by find_expertise.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

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 does meaningful work: it discloses that this is a stateful multi-step protocol, that responses can hand back a different run_id for a nested run, and that resumption of the parent run happens automatically in the same reply. What it does not cover is failure behavior — what happens if result fails validation, whether retries are safe, or whether a step can terminate the run abnormally.

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 core action is front-loaded in the first sentence and the protocol caveats follow in a clearly flagged block. The sub-expertise paragraph is long but each clause addresses a distinct failure mode an agent would otherwise hit. Slightly repetitive phrasing ('just keep calling next_step ... as usual') costs it the top score.

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 stateful orchestration tool with no output schema, the description does explain what comes back — the next instruction, plus the marker phrases 'Entering sub-expertise' and 'Resuming parent run'. Combined with the fully documented two-parameter schema, an agent has enough to drive the loop. Error handling and termination conditions are the remaining gap.

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 the baseline is 3. The description does add real meaning beyond the schema for run_id — the schema says 'returned by find_expertise' while the description clarifies it must be whichever run_id the most recent response supplied, and it ties result to the expected_output fields from the prior step. That is a modest but genuine lift over the structured fields.

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 opens with a specific verb pair and resource: 'Report the result of the current expertise step and receive the next instruction.' That makes the round-trip nature of the call unmistakable, and naming find_expertise as the source of run_id separates it from the run-creation sibling. It stops short of a full sibling comparison (e.g., versus validate_expertise or get_expertise_insights), so it lands at 4 rather than 5.

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 clear operating context: call this after each step, pass the run_id from find_expertise, and keep looping with the current run_id. The sub-expertise paragraph is unusually actionable guidance about which run_id to use in a nested run. It offers no explicit exclusions or alternatives, which keeps it out of 5 territory.

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