{"uid":"cap_fH6lO84PLOoEmrXRJZaN6","slug":"agent402-uk-batch-utility-processor-27eccf6e","name":"Agent402 UK Batch Utility Processor","description":"Don't burn tokens on deterministic work. Go/no-go jobs first: payout preflight, text firewall (PII/secrets), budget check — then rails, calendars, finmath. x402 USDC on Base. UK + global. agent402.co.uk — not agent402.tools. $0.001–$0.002 USDC on Base. No API keys.","url":"https://agent402.co.uk/v1/utils/batch","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"items":{"type":"array","description":"1-50 ops: hash|base64|json-format|json-diff|text-metrics|markdown-to-html|slugify|uuid"},"stop_on_error":{"type":"boolean","description":"Stop after first item error (default false)"}}},"responseSchema":{"type":"json","example":{"results":[{"ok":true,"op":"hash","result":{"hex":"2cf24dba..."}}],"summary":{"total":3,"failed":0,"succeeded":3}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zjsh9tMq1bVcE06Fa2Zrv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Execute up to 50 deterministic utility operations in a single paid batch: hashing, base64, JSON formatting/diffing, text metrics, markdown-to-HTML, slugification, and UUID generation.","exampleAgentPrompt":"Can you run these five operations in one go: SHA-256 hash 'hello world', base64-encode 'agent data', format this JSON blob, slugify 'My Blog Post Title', and generate a fresh UUID — stop if any step errors out?","exampleUseCases":[{"title":"Content pipeline slug and hash generation","prompt":"I need to process these 10 blog post titles: slugify each one and also SHA-256 hash each slug so I can use them as cache keys — do it all in one batch call."},{"title":"Multi-format JSON audit mid-task","prompt":"I have three JSON payloads from different APIs — can you format all three and diff the first against the second in a single batch, stopping on the first error?"},{"title":"Markdown to HTML for multiple articles","prompt":"Convert these 8 markdown snippets to HTML and get word counts for each one in the same request — I need both outputs together before I publish."}],"resultDescription":"A JSON object with a 'results' array (one entry per operation, each with ok: true/false, the op name, and the result payload) plus a summary object showing total, succeeded, and failed counts. On partial failure (when stop_on_error is false), completed operations still return their results.","failureModes":["Array exceeds 50 items — batch rejected","Unrecognized op type — item marked failed with error detail","Malformed JSON input for json-format or json-diff — item fails","stop_on_error: true halts processing and returns only results up to the failed item","Payment not received or x402 handshake fails — 402 response, no processing","Missing required fields for a specific op — that item returns ok: false"],"whenToPreferThis":"Use this endpoint when an agent needs 5 or more deterministic utility transformations mid-task and wants to avoid multiple round-trips and multiple payments. It is strictly better than calling individual utility endpoints when n≥5 because the $0.01 flat fee covers the entire batch. Prefer it over language-model-based transformation when exact, reproducible outputs are required (e.g., canonical hashes, RFC-compliant UUIDs, lossless base64).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:58:02.833Z","isFirstParty":false}