Skip to main content
Glama

rerun_failed

Re-runs only the tests that failed or errored in the last run for this project and returns updated results showing which failures remain.

Instructions

Re-run only the tests that failed or errored in the last run_tests/rerun_failed for this project (same server session). Returns the same structure as run_tests, plus how many ids were rerun (at most 100). The failure list is replaced by what still fails.

Input Schema

NameRequiredDescriptionDefault
pathNo.
pythonNo
timeoutNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does reasonably well: it discloses the at-most-100 rerun cap, that the returned structure matches run_tests plus a rerun count, and that the stored failure list is replaced by remaining failures (a state mutation). It omits error behavior when no prior failure list exists and any permission/execution 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the core action, then return shape, then the 100-cap and failure-list replacement. No redundant or filler wording.

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

Completeness3/5

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

The output schema and the description cover return values well, and the prerequisite of a prior run in the same session is stated. However, for a three-parameter tool with zero schema documentation, the absence of any parameter guidance leaves the definition only partially complete.

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?

Schema description coverage is 0% across three parameters (path, python, timeout), and the description does not mention any of them. The phrase 'this project' hints at path scoping, but there is no guidance on what python or timeout control, so the description fails to compensate for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a precise verb and resource ('Re-run only the tests that failed or errored') and constrains it to the last run_tests/rerun_failed in the same server session, which cleanly separates it from the sibling run_tests (full run) and list_tests.

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 implies the when: after a prior run_tests/rerun_failed has produced failures, within the same server session. That is a clear trigger context, but it never explicitly says when to prefer run_tests instead of this tool or what happens if there is no recorded failure list.

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