Skip to main content
Glama

Failure Receipt + Dead-Letter Queue

failure_put

Failure Receipt + Dead-Letter Queue: when a job fails, record WHY in a standard machine-readable form (omenz.failure.v0: objective, failed_step, error_class from a fixed list, attempts, money spent, receipts, partial artifacts, suggested next step, retryable). Secret-scanned first (secrets = refused, not stored, not charged). Stored encrypted in an Agent Locker for the next agent; pass dlq_box_id to also drop a sealed pointer into an Agent PO Box used as your dead-letter queue. By OMENZ. (MCP calls run in AYNE, the free playzone; production: POST https://www.omenz.org/api/tollbooth/v1/failure/put, $0.002 via x402.)

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": {
      "failure": "<failure>"
    },
    "name": "failure_put"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoto
fromNofrom
failureYesobjective and failed_step required
ttl_daysNottl days
dlq_box_idNodlq box id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / dlq_box_id / description
      Added value: +"dlq box id"
    • addedInput schema / properties / from / description
      Added value: +"from"
    • addedInput schema / properties / to / description
      Added value: +"to"
    • addedInput schema / properties / ttl_days / description
      Added value: +"ttl days"
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond annotations, it discloses secret scanning and refusal behavior, encrypted storage in an Agent Locker, optional sealed pointer placement in a DLQ, and production cost/environment details. These are material behaviors an agent would not infer from the annotations alone.

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?

The description is dense but front-loaded around the core action and key behavioral constraints. The production endpoint and pricing parenthetical is relevant but makes the final sentence feel crowded.

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 mutation tool with a nested failure object and no output schema, the description covers the important storage, secrecy, DLQ, and cost context. It does not describe the return value or clarify to/from/ttl_days semantics, leaving some gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema coverage is 100%, but most schema property descriptions are just the parameter names. The description adds meaningful detail about the failure object fields, including objective, failed_step, fixed error_class, attempts, money spent, receipts, partial artifacts, suggested next step, and retryable, and it explains dlq_box_id. It still leaves to, from, and ttl_days semantics largely unexplained.

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 states a specific verb and resource: record why a job failed in a standard machine-readable failure receipt, with optional dead-letter queue behavior. It is distinguishable from generic receipts/lockers by the failure-specific schema and DLQ pointer, though it does not explicitly name sibling tools.

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 a clear trigger: when a job fails, record WHY. It also explains the optional dead-letter behavior via dlq_box_id. It lacks explicit exclusions or alternatives such as queue_fail or receipt_put.

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