Skip to main content
Glama

get_worst_run

Read-only

Return the worst recent run(s) — the landing call for 'what's broken right now'. With agentId: returns the single worst run for that agent. Without agentId: returns worst-per-agent across the fleet (one entry per agent). Each result includes the canonical accepted claim and its exact occurrence evidence.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agentIdNoOptional. Scope to a specific agent. Omit for fleet-wide worst-per-agent.
customerIdNo(Converra superadmin only) Target customer ID
windowDaysNoDays to look back (default 14, max 90)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds genuine behavioral detail: the return granularity (single run vs worst-per-agent) and the returned content (canonical accepted claim and exact occurrence evidence). It does not cover pagination, rate limits, or empty-result behavior.

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 sentences with zero waste; the primary purpose is front-loaded and the mode-specific behavior is split cleanly. Every sentence earns its place.

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 read-only fleet query with no output schema, the description adequately explains what is returned and how results are scoped. It omits minor operational details like default lookback and empty-result behavior, but nothing essential for correct invocation is missing.

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%, so all three parameters are already documented — including agentId's scoping behavior. The description restates the agentId semantics but adds no syntax, format, or default details beyond the schema.

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?

The description states a specific verb and resource — return the worst recent run(s) — and immediately distinguishes the two operational modes (with vs without agentId). It also positions the tool clearly against siblings like list_runs by framing it as the 'what's broken right now' landing call.

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 usage context ('landing call for what's broken right now') and explains the condition that selects each behavior (with agentId vs without). It does not explicitly name alternatives or exclusions, so it stops short of a 5.

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