Skip to main content
Glama

http-outcome

Classify an HTTP response as success, retry, reconcile or stop, with the wait it asks for — Classifies one HTTP response (method, status, headers) as success / retry / reconcile / stop for an agent that just called an API, and reads the wait from Retry-After (RFC 9110: delay-seconds or any of the three HTTP-date formats) or from a vendor delay header whose dialect the caller declares (seconds, milliseconds, epoch seconds, epoch milliseconds, HTTP-date). Caller-supplied vendor rules (stat

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": {
      "method": "<method>",
      "status": "<status>"
    },
    "name": "http-outcome"
  }
}

Input Schema

NameRequiredDescriptionDefault
asOfNoRFC 3339 instant; needed to turn an HTTP-date or epoch delay into seconds.
methodYes
statusYes
headersNoResponse headers as name/value pairs (names compared case-insensitively).
delayHeaderNoWhich header carries the wait and in what dialect. Default is Retry-After under RFC 9110.
vendorRulesNoFirst matching rule wins.
idempotencyKeyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It discloses the four outcome categories, RFC 9110 Retry-After parsing, declared vendor-delay dialects, and caller-supplied vendor rules (though the sentence is cut off). It does not explain what determines success/retry/reconcile/stop, how idempotencyKey affects classification, or whether the operation is pure/read-only.

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 purpose is front-loaded in the first clause, but it is immediately restated in the second sentence, and the long parenthetical sentence is cut off mid-word. The redundancy and truncation keep it from being fully efficient, though the core intent remains clear.

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

Completeness2/5

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

For a 7-parameter, nested-object classifier with no annotations, no output schema, and 57% schema coverage, the description leaves important gaps: it never explains idempotencyKey/serverHonors, the output shape, or how outcome rules are resolved beyond the incomplete vendor-rules phrase. The truncation makes the definition insufficient for safe invocation.

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 57%, so the schema documents some nested fields but not all. The description adds meaning for method/status/headers and parsing dialects, but the vendor-rules phrase is truncated and asOf/idempotencyKey semantics are unaddressed. It compensates only partially.

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 opening states a specific verb ('Classify') and resource ('one HTTP response (method, status, headers)') and enumerates the four outcomes. It is distinguishable from a cache-explanation sibling by its classification role, but it does not explicitly compare to any sibling, so 4 rather than 5.

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 usage context -- 'for an agent that just called an API' -- and identifies that the wait is read from Retry-After or a declared vendor delay header. It does not state when not to use it or name an alternative tool, but the context is explicit enough for a 4.

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