{"uid":"cap_ApMIus3yC6AvHNCvMQHsT","slug":"crucible-code-test-runner-133b96a6","name":"Crucible Code Test Runner","description":"7 endpoints for code execution in 60+ languages. Pay per request via x402 on Base chain.","url":"https://crucible-lovat.vercel.app/api/test","method":"POST","headers":{},"bodySchema":{"type":"object","required":["code","tests","language"],"properties":{"code":{"type":"string","description":"Source code to test"},"tests":{"type":"array","description":"Array of test cases"},"language":{"type":"string","description":"Programming language"}}},"responseSchema":{"type":"object","required":["success"],"properties":{"data":{"type":"object","properties":{"total":{"type":"number"},"failed":{"type":"number"},"passed":{"type":"number"},"results":{"type":"array"},"language":{"type":"string"}}},"success":{"type":"boolean"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.15","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.15/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ih--6OnZSjBxepnR9Ckbg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.15","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes source code against an array of test cases in a specified programming language and returns pass/fail results","exampleAgentPrompt":"Run this Python function against these 3 test cases and tell me how many pass: def add(a, b): return a + b — test cases are [{\"input\": [1, 2], \"expected\": 3}, {\"input\": [0, 0], \"expected\": 0}, {\"input\": [-1, 5], \"expected\": 4}].","exampleUseCases":[{"title":"Validate algorithm against edge cases","prompt":"I just wrote a binary search function in Python — can you run it against these edge cases for me and tell me which ones pass or fail? The cases include an empty list, a single element, and a target that doesn't exist in the array."},{"title":"Check JavaScript solution correctness","prompt":"Here's my JavaScript function that reverses a string without using built-in reverse methods. Run it against these 5 test inputs and expected outputs and let me know if any of them fail."},{"title":"Grade student coding submission","prompt":"A student submitted this Java solution for a fibonacci sequence problem. Can you test it against our 10 graded test cases and give me a breakdown of how many they passed and which specific ones they got wrong?"}],"resultDescription":"Returns a JSON object with a success boolean and a data object containing: total number of tests, number passed, number failed, per-test result array, and the language used.","failureModes":["Unsupported language specified — endpoint supports 60+ languages but not all","Malformed code causing syntax errors in the sandbox","Empty or invalid test cases array causing validation failure","Network or sandbox timeout for long-running code","Payment failure via x402 on Base chain resulting in 402 response"],"whenToPreferThis":"Use this endpoint when you need to execute and test code snippets in any of 60+ supported programming languages against structured test cases, especially in an agent workflow that requires code correctness verification. Prefer this over generic code execution endpoints when you specifically need pass/fail test result aggregation with per-test details.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:35:27.671Z","isFirstParty":false}