{"uid":"cap_M0tySUK7ODIqQNJYtYAXE","slug":"writerslogic-http-outcome-classifier-e25f01da","name":"WritersLogic HTTP Outcome Classifier","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/http-outcome?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"asOf":{"type":"string","maxLength":40,"description":"RFC 3339 instant; needed to turn an HTTP-date or epoch delay into seconds."},"method":{"type":"string","maxLength":32,"minLength":1},"status":{"type":"integer","maximum":599,"minimum":100},"headers":{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","maxLength":100,"minLength":1},"value":{"type":"string","maxLength":1000}},"additionalProperties":false},"maxItems":100,"description":"Response headers as name/value pairs (names compared case-insensitively)."},"delayHeader":{"type":"object","required":["name","dialect"],"properties":{"name":{"type":"string","maxLength":100,"minLength":1},"dialect":{"enum":["retry-after","delay-seconds","delay-milliseconds","epoch-seconds","epoch-milliseconds","http-date"],"type":"string"}},"description":"Which header carries the wait and in what dialect. Default is Retry-After under RFC 9110.","additionalProperties":false},"vendorRules":{"type":"array","items":{"type":"object","required":["outcome"],"properties":{"note":{"type":"string","maxLength":300},"status":{"type":"integer","maximum":599,"minimum":100},"outcome":{"enum":["success","retry","reconcile","stop"],"type":"string"},"statusMax":{"type":"integer","maximum":599,"minimum":100},"statusMin":{"type":"integer","maximum":599,"minimum":100},"headerName":{"type":"string","maxLength":100},"headerEquals":{"type":"string","maxLength":1000}},"additionalProperties":false},"maxItems":50,"description":"First matching rule wins."},"idempotencyKey":{"type":"object","required":["present"],"properties":{"present":{"type":"boolean"},"serverHonors":{"enum":["yes","no","unknown"],"type":"string"}},"additionalProperties":false}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4UEfqpOjxxq-VMqDKRGZ7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies a single HTTP response (method, status, headers) as success, retry, reconcile, or stop for an AI agent, and extracts the recommended wait time from Retry-After or a vendor-specific delay header.","exampleAgentPrompt":"I just got a 429 response from an API call with a Retry-After header — can you classify whether my agent should retry, stop, or reconcile, and tell me exactly how many seconds to wait before the next attempt?","exampleUseCases":[{"title":"Rate limit handling in agent loop","prompt":"My agent just received a 429 Too Many Requests from the payments API with a Retry-After header value of 30 — should it retry, and how long should it wait? The method was POST and I need to know if I should treat the idempotency key as honored."},{"title":"Vendor-specific error classification","prompt":"I need to classify a 503 response from my vendor's API — their rules say 503 with an X-Error-Code header equal to 'overload' means retry, but plain 503 means stop. Can you apply those custom rules and tell me the outcome?"},{"title":"Epoch-millisecond delay header parsing","prompt":"My agent got a 429 from a third-party API that returns the retry delay in a header called X-RateLimit-Reset as epoch milliseconds rather than standard Retry-After — can you parse that and tell me how many seconds to wait, as of right now?"}],"resultDescription":"Returns an outcome label (success, retry, reconcile, or stop), the recommended wait in seconds derived from Retry-After or a vendor delay header, and a witness citation explaining which rule (RFC default or caller-supplied vendor rule) determined the outcome.","failureModes":["Status code outside 100-599 range causes validation error","More than 100 headers or 50 vendor rules exceeds limits","Missing or malformed RFC 3339 asOf timestamp when an HTTP-date or epoch delay header must be resolved to seconds","No matching vendor rule and no RFC default applies — outcome returned as 'unknown'","Caller declares a delay header dialect but the specified header is absent from the response"],"whenToPreferThis":"Use this endpoint when your AI agent needs to programmatically decide how to handle any HTTP response from an upstream API — especially when vendor-specific rate limiting rules differ from RFC 9110 defaults, or when the retry delay is encoded in a non-standard header format (epoch milliseconds, etc.). Prefer it over hand-coded retry logic when you need a verifiable, auditable witness for the classification decision.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:37:07.830Z","isFirstParty":false,"canonicalSlug":"writerslogic-http-outcome-classifier-e25f01da"}