Skip to main content
Glama

Next step

next_step

Hands in a GitRanks Build step, in two calls. Use it once the person tried the step: first with tried true, which answers the step's check (and its question when questions are on); then with the check's whole output and what the person picked. Answers the next step, or the same step with what went wrong and what to do. Refused as invalid_input when the check comes before the try, or a pick is missing or names two options. Rule: send the check's output whole and unchanged, never piped or shortened, and never pick for the person.

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

Input Schema

NameRequiredDescriptionDefault
stepYesThe slug of the step the person tried, as its answer named it
checkNoThe check's whole output, exactly as printed, never cut or piped
triedNotrue once the person tried the step: answers its check, and its question when questions are on
answerNoWhen questions are on, exactly what the person picked: their letter, e.g. 'B', or "I don't know"
buildIdYesThe build's buildId (24 hex characters), as its start answered it or .gitranks/build.json holds it

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint false, destructiveHint false, idempotentHint false), it discloses the two-phase interaction model, the invalid_input refusal conditions (check before try, missing or ambiguous pick), and the hard rule about passing the check output whole. It does not mention idempotency or repeat-call behavior, which matters given idempotentHint=false.

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 protocol is front-loaded in the first sentence and each subsequent sentence carries a distinct rule (ordering, refusal cases, integrity rule). The prose is dense and slightly run-on, but there is no filler.

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-call, five-parameter mutation tool with no output schema, the description covers the call sequence, failure modes, and the response outcome ('the next step, or the same step with what went wrong'). The main gap is that it does not explain repeat or idempotency behavior.

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

Parameters4/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, but the description adds sequencing meaning the schema lacks: tried belongs to the first call, while check and answer belong to the second. It also clarifies that answer is the person's pick, not the agent's choice.

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 on a specific resource: handing in a GitRanks Build step, framed as a two-call protocol. The purpose is clear, but it never distinguishes this tool from siblings such as reset_step or submit_patch, so the agent must infer the boundary from context.

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 an explicit trigger ('Use it once the person tried the step') and a precise call ordering: first with tried true, then with the check output and the person's pick. It does not name when-not to use it or a sibling alternative, so it stops short of full routing guidance.

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.