{"uid":"cap_LIHJdOlKt3JHVIYMVpv4E","slug":"coding-agent-context-apis-gateway-run-a5647237","name":"Coding Agent Context APIs – Gateway Run","description":"Free need-to-tool routing plus pay-per-call npm docs and TypeScript API signatures, npm breaking-change diffs, JavaScript-rendered browser snapshots and deterministic coding-agent checks via AgentCash/x402.","url":"https://x402-canary.nicolas-x402-16f380a7.workers.dev/v1/gateway/run","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"tool":{"enum":["exchange-rates","fx-convert","earthquakes-recent","cron-explain","domain-preflight","domain-enrich","email-preflight","dns-lookup","url-normalize","json-inspect","hash-sha256"],"type":"string"},"input":{"type":"object"}}},"responseSchema":{"type":"json","example":{"data":{"tool":"cron-explain","result":{}},"meta":{"engine":"gateway"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_toqwlvjTbsfF1d0yHgDxS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Routes coding-agent utility requests to tools like exchange rates, FX conversion, cron explanation, DNS lookup, URL normalization, domain enrichment, email preflight, JSON inspection, and SHA-256 hashing via a single gateway endpoint.","exampleAgentPrompt":"Can you explain what the cron expression '0 9 * * 1-5' means — use the coding agent gateway with the cron-explain tool.","exampleUseCases":[{"title":"Cron schedule explanation for CI pipeline","prompt":"I have this cron expression '*/15 8-18 * * 1-5' in our CI config and I can't remember what it means — can you explain it in plain English using the cron-explain tool?"},{"title":"FX conversion for invoice pricing","prompt":"What is 2500 USD in GBP right now? Use the fx-convert tool to get the current rate and converted amount."},{"title":"Email preflight before outreach campaign","prompt":"Before I send a cold email to support@example.com, can you run an email preflight check on that address to see if it's likely to be deliverable?"}],"resultDescription":"A JSON object with a 'data' field containing the tool name and its result (e.g. cron schedule breakdown, exchange rate, DNS records, normalized URL, domain metadata, SHA-256 hash), plus a 'meta' field indicating the engine used ('gateway').","failureModes":["Unknown or unsupported tool enum value returns an error","Missing required input fields for the selected tool returns a validation error","Network or upstream service timeout for browser-rendered or external lookups","Payment not settled (x402) results in 402 response before tool execution","Malformed JSON input returns a parse error"],"whenToPreferThis":"Choose this endpoint when a coding agent needs quick, deterministic utility operations — especially cron expression parsing, DNS/domain/email validation, currency conversion, URL normalization, or SHA-256 hashing — in a single pay-per-call gateway without needing separate API keys for each service. Ideal for AI coding agents that need context about npm packages, domain safety, or infrastructure during code generation workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:42:52.775Z","isFirstParty":false}