{"uid":"cap_snLT4z1u003nKytOty_Wb","slug":"statemind-python-sandbox-executor-3a63f2c0","name":"Statemind Python Sandbox Executor","description":"Run Python in a throwaway container with no network and a read-only filesystem, and report what it did against the caller's examples.","url":"https://api.statemind.ai/mcp#execute_python","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_M2RNVD1By1YRtmaki4SFr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes Python code in an isolated, network-free, read-only container and reports results against caller-provided test examples","exampleAgentPrompt":"Run this Python function in a safe sandbox with no network access and check if it produces the right output for these three examples: input 5 → output 120, input 0 → output 1, input 3 → output 6 — the function is supposed to compute factorial.","exampleUseCases":[{"title":"Algorithm correctness verification","prompt":"I've written a binary search function in Python — can you run it in a sandboxed environment against these examples: searching for 7 in [1,3,5,7,9] should return index 3, and searching for 4 in [1,3,5,7,9] should return -1?"},{"title":"Student code assignment grading","prompt":"I need to test a student's Python submission for a sorting assignment — run it safely in an isolated container and tell me if it correctly sorts [3,1,4,1,5] to [1,1,3,4,5] and [9,7,2] to [2,7,9]."},{"title":"Data transformation script testing","prompt":"Can you execute this Python CSV-parsing function in a throwaway sandbox with no internet and verify it against my two test cases: parsing 'name,age\\nAlice,30' should return [{'name':'Alice','age':'30'}] and an empty string should return an empty list?"}],"resultDescription":"Returns the execution output (stdout, stderr, return values) of the Python code alongside a pass/fail comparison report for each caller-provided example, indicating whether the actual output matched the expected output. No network calls or filesystem writes are made during execution.","failureModes":["Code with syntax errors fails to execute and returns a parse error","Code that attempts network access is silently blocked or raises a connection error","Code exceeding execution time limits is terminated and returns a timeout error","Code attempting to write to the filesystem raises a permission error","Missing or malformed example inputs cause comparison step to fail","Import of unavailable third-party libraries raises ModuleNotFoundError"],"whenToPreferThis":"Prefer this endpoint when you need to safely execute arbitrary or untrusted Python code without any risk of network exfiltration, filesystem modification, or side effects, and especially when you want to validate code correctness against specific input/output examples in a single call. It is ideal for code testing, grading, or algorithm verification workflows where isolation and reproducibility are critical.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:35:10.772Z","isFirstParty":false}