{"uid":"cap_8OxH8qciRmU1F5RkTwWzu","slug":"blinka-python-error-diagnosis-b44223ef","name":"Blinka Python Error Diagnosis","description":"Bounded stateless machine services plus public procurement discovery. No private Mika memory or arbitrary tool execution.","url":"https://blinka-machine-mouths.netlify.app/debug-python?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"code":{"type":"string","description":"Python source associated with the observed failure. Max 16,000 characters; never executed."},"error":{"type":"string","description":"Observed Python error, exception, traceback, or failure message. Max 4,000 characters."},"intent":{"type":"string","description":"Optional intended behavior used to disambiguate the diagnosis. Max 1,800 characters."},"language":{"enum":["python"],"type":"string"}}},"responseSchema":{"type":"json","example":{"ok":true,"service":"blinka-python-error-diagnosis","evidence":"ZeroDivisionError: division by zero","executed":false,"language":"python","retained":false,"diagnosis":"The function divides by b without handling the zero-denominator case shown by the supplied error.","confidence":0.95,"primary_issue":null,"suggested_fix":"Define the intended zero-denominator policy and guard b == 0 before division."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gL7tXdHavMO-rpRFNaH2x","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes Python source code and error messages to diagnose the root cause and suggest a fix, without executing any code.","exampleAgentPrompt":"I'm getting a ZeroDivisionError in my Python function — here's the code and the full traceback. The function is supposed to compute a ratio and return zero if the denominator is missing. Can you diagnose exactly what's going wrong and suggest a fix?","exampleUseCases":[{"title":"CI pipeline failure root cause","prompt":"My automated test suite just failed with this traceback: 'AttributeError: NoneType object has no attribute split'. Here's the Python function it's running — the intent was to parse an optional config value and split it by commas. Can you diagnose what's causing it and suggest how to fix it?"},{"title":"Beginner debugging assistance","prompt":"I'm learning Python and my script keeps crashing with a KeyError on a dictionary lookup. Here's my code and the full error message — I was trying to get a user's email from a response dict. What's actually going wrong and how should I fix it?"},{"title":"Production exception triage","prompt":"We're seeing a recurring TypeError in production: 'unsupported operand type(s) for +: int and str'. Here's the function and the exception. The intent is to concatenate a numeric ID with a string prefix for logging. Can you diagnose the root cause and tell me how confident you are in the fix?"}],"resultDescription":"Returns a JSON object with a natural-language diagnosis of the error, a suggested fix, the key evidence excerpt from the code or error, a confidence score (0–1), and flags confirming the code was never executed and no data was retained.","failureModes":["Code or error input exceeds character limits (16,000 / 4,000 chars respectively) — request rejected","Ambiguous or minimal code snippet with no clear error context — low confidence diagnosis returned","Unrelated or non-Python language submitted despite language field — may return unhelpful diagnosis","Network or payment failure — HTTP 402 or 5xx returned with no diagnosis"],"whenToPreferThis":"Choose this endpoint when you need a fast, stateless, read-only analysis of a Python error without any code execution risk. It is ideal for CI/CD pipelines, agent-assisted debugging loops, or beginner support flows where safety and privacy (no code retention) are paramount. Prefer it over general-purpose LLM calls when you want a structured, confidence-scored diagnosis with explicit evidence anchoring rather than a freeform explanation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:34:04.760Z","isFirstParty":false,"canonicalSlug":"blinka-python-error-diagnosis-b44223ef"}