Skip to main content
Glama

list_failed_jobs

Read-onlyIdempotent

List failed background jobs by status and kind to identify dead or retrying work, including attempts and last error for troubleshooting and retry decisions.

Instructions

Background jobs that failed: status dead (out of attempts, needs a person) or failed (will be retried). Newest first, with kind, attempts and last_error. retry_job re-queues one.

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

Input Schema

NameRequiredDescriptionDefault
kindNoOnly this job kind, e.g. "send_email".
limitNoHow many of each status to return.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the description only needed to add operational context — and it does: sort order ('newest first'), the returned fields (kind, attempts, last_error), and the semantic difference between dead and failed. It omits the per-status limiting behavior, which is the one notable behavioral gap.

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 compact sentences: scope, then status semantics, then ordering and payload, then the alternative action. Every clause carries information and nothing is repeated from the schema or annotations.

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-parameter read tool with no output schema, the description supplies return fields and ordering, which is enough to call it correctly. The only shortfall is not surfacing that limit caps each status separately — a detail an agent could easily misread as a total cap.

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 coverage is 100%, so both parameters (kind, limit) are fully documented inline, including the non-obvious 'how many of each status to return' nuance. The description adds no parameter-specific meaning beyond the schema, so the baseline of 3 applies.

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 specific resource (background jobs) and an exact scope (failed only), then defines the two included statuses: 'dead (out of attempts, needs a person)' and 'failed (will be retried)'. An agent knows precisely what this returns without opening the schema.

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?

The status glosses give clear when-to-use context (dead = needs human intervention vs failed = self-recovering), and 'retry_job re-queues one' routes the agent to the follow-up action. It does not state exclusions, e.g. how to list successful or running jobs, but the intended use case is unambiguous.

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