{"uid":"cap_YaZTknpF6kJhURbtv1et6","slug":"agent-micro-prime-checker-6757626b","name":"Agent Micro Prime Checker","description":"Advanced micro-tools for AI agents: cryptographic randomness, text analysis, math helpers, date arithmetic, web metadata, and IP intelligence. All under $0.01 per request, paid in USDC via x402.","url":"https://agent-micro.annushka1190.workers.dev/v1/math/prime","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"const":"http"},"method":{"enum":["GET"]},"queryParams":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true}},"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":"unknown","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_VF6PFp_8kLSZqVsX-Xw75","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":"Checks whether a given integer is a prime number, returning a boolean result via a cheap per-call micro-payment endpoint.","exampleAgentPrompt":"Can you check whether 104729 is a prime number using a math micro-tool?","exampleUseCases":[{"title":"Primality check for cryptographic key","prompt":"I'm generating RSA keys and need to know if 104723 is a prime number — can you verify that for me?"},{"title":"Math homework helper","prompt":"My kid is working on number theory and wants to know if 257 is a prime number. Can you check that quickly?"},{"title":"Filtering primes in a data pipeline","prompt":"I have a list of candidate integers and need to check if 999983 is prime before passing it into the next step of my pipeline — can you verify?"}],"resultDescription":"Returns a JSON object with an 'ok' boolean field indicating whether the request succeeded, and likely a result field indicating whether the provided integer is prime.","failureModes":["Missing or invalid 'input' query parameter returns an error","Non-integer or non-numeric input may return a 400 error","Payment failure or missing x402 USDC header results in 402 Payment Required","Very large integers may cause timeout or overflow errors","Network issues with the Cloudflare Worker may return 5xx errors"],"whenToPreferThis":"Choose this endpoint when you need a quick, cheap, on-demand primality check for a single integer without spinning up your own math library or compute environment. At $0.001 per call paid in USDC via x402, it is ideal for AI agents that occasionally need mathematical validation without maintaining local dependencies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:36:12.433Z","isFirstParty":false}