Skip to main content
Glama

Reset a step

reset_step
Idempotent

Sets a GitRanks Build folder back to a step the build passed, or to the step it is on: it answers how to bring in every file as it stands after that step. Use it when the files drifted, the person asks to do a step again, or a check keeps failing. It moves no progress, and the step is tried again before its check. Refused as not_found for a step the build neither passed nor is on.

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": "reset_step"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepYesThe slug of a step the build passed, or of the step it is on
filesNotrue: every file in the answer, instead of a fetch from GitHub
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

A3.6/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true, destructiveHint=false, openWorldHint=false. The description adds real value beyond them: it does not advance build progress, the step is retried before its check runs, and invalid steps are rejected as not_found. It still doesn't say what happens to previously modified files or whether the reset is transactional, leaving a meaningful gap for a mutating, file-touching operation.

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?

Purpose is front-loaded in the first clause and the usage triggers follow in priority order. The colon-joined first sentence is long and the phrase 'it answers how to bring in every file as it stands after that step' is awkward and slightly redundant with 'sets back to a step'.

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 three-parameter mutation with no output schema, the description covers purpose, triggers, no-progress behavior, retry ordering, and the not_found rejection. Remaining gaps are the shape of the response and the fate of working-tree changes outside the build folder.

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?

With schema description coverage at 100%, the schema already documents all three parameters including the step slug constraints and the files flag. The description's phrase 'bring in every file as it stands after that step' loosely gestures at the files parameter but adds no format or precedence detail beyond the schema. Baseline 3 applies.

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 names a specific verb and resource: setting a GitRanks Build folder back to a passed step or its current step, restoring files as they stood at that step. It is clearly distinct from state-advancing tools, reinforced by 'It moves no progress,' but it never names a sibling (e.g. next_step) to route against.

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?

Gives three concrete triggers: files drifted, the person asks to redo a step, or a check keeps failing. It also states a failure condition (refused as not_found for a step neither passed nor current), which implicitly bounds valid use, but offers no explicit when-not or named alternative.

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.