Skip to main content
Glama

failures

failures
Read-onlyIdempotent

Lists failed tests with their failing frame and recorded assertion, panic, or exception to help debug test runs.

Instructions

failed tests and the frame they failed in. Each failed test mapped to the frame and the assertion, panic or exception recorded there. A vitest expect, a Rust panic, and a C crash or assert in a test_ frame are listed here; exceptions still judges throw and Err flow and does not list them.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "failures"
  }
}

Input Schema

NameRequiredDescriptionDefault
runNorun id, a unique prefix of one, or `last` (the newest trace)last
limitNomost rows to print

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.18.3

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds real value by specifying what appears in the results and, importantly, what is filtered out (judge-thrown exceptions, Err flow) — a non-obvious scoping behavior. It says nothing about ordering or how failures relate to the run being queried, which keeps it at a 3.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The definition is short and front-loads the core resource, and every sentence carries inclusion/exclusion information. However, the final clause — 'exceptions still judges throw and Err flow and does not list them' — is grammatically garbled and costs a moment of parsing, weakening structure.

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 simple, fully-annotated read tool with both parameters documented in the schema and no output schema, the description covers the essentials: what is returned and what is filtered out. The only gap is that it does not describe grouping/ordering of multiple failures per test.

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 description coverage is 100%: both `run` (run id, unique prefix, or `last`) and `limit` are fully documented in the schema. The description adds no semantics beyond that, so the 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 definition names a concrete resource — failed tests plus the frame and the assertion/panic/exception recorded there — and enumerates the failure kinds it covers (vitest expect, Rust panic, C crash or assert in a test_ frame). The closing clause distinguishes it from the `exceptions` and `flow` siblings by stating what it does not list, 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?

Clear context for when this tool applies: anything that surfaced as a failed test with a recorded assertion, panic, or crash. The exclusion — judge-thrown exceptions and Err flow are not listed — implicitly routes the agent elsewhere, but no sibling tool is named as the alternative, so the agent must infer the fallback.

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

Deploy Server

Other Tools