{"uid":"cap_kCwoQn_oKZmwkh2qKIGfg","slug":"agent402-uk-tool-scaffolder-944fb308","name":"Agent402 UK Tool Scaffolder","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/scaffold/tool","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"language":{"type":"string","description":"js | python"},"description":{"type":"string","description":"What pure function to scaffold (validators/codecs only)"}}},"responseSchema":{"type":"json","example":{"code":"export function luhnCheck...","valid":true,"constraints":{"pure":true,"no_llm":true,"no_network":true},"matched_template":"luhn"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3C74IG_3SV-gwuqsSl1Dv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates JS or Python pure-function boilerplate code plus an OpenAPI fragment and x402 call pattern from a natural-language description, using deterministic templates with no LLM.","exampleAgentPrompt":"Scaffold a pure JavaScript function that checks a credit card number using the Luhn algorithm — give me the code, a matching OpenAPI fragment, and the x402 call pattern.","exampleUseCases":[{"title":"Luhn validator scaffold for payments","prompt":"Generate a pure JavaScript function that validates a credit card number using the Luhn algorithm, and include the OpenAPI fragment and x402 call pattern for it."},{"title":"Python codec boilerplate for agent tool","prompt":"Scaffold a pure Python function that encodes and decodes Base58 strings — I need the code stub, constraints proof that it has no network calls, and the matched template name."},{"title":"ISO IBAN validator tool bootstrap","prompt":"Create a pure JavaScript scaffold for an IBAN format validator, with the OpenAPI fragment included, so I can wire it into my agent as a leaf tool."}],"resultDescription":"Returns a JSON object containing: the generated JS or Python code for the requested pure function, a boolean validity flag, a constraints object confirming pure/no-LLM/no-network properties, and the name of the matched deterministic template used to produce the code.","failureModes":["Description does not match any known deterministic template — returns unmatched template or error","Unsupported language value (not 'js' or 'python') — likely 400 or validation error","Description is too vague or ambiguous to map to a pure function — may return generic or empty scaffold","Payment failure via x402 — call not executed if $0.001 USDC charge fails"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, reproducible code scaffold for a pure function (validators, codecs, math) and want to guarantee no LLM non-determinism, no network calls, and no side effects in the generated code. Prefer it over LLM-based code generators when auditability, reproducibility, and strict purity constraints matter, or when you need an OpenAPI fragment and x402 payment pattern baked in from the start.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T15:28:48.852Z","isFirstParty":false}