# Blinka Python Code Review

> Blinka Python Code Review is a paid API for AI agents from blinka-machine-mouths.netlify.app, paid per call via x402, $0.25/call, status unknown (last checked 2026-10-13).

Performs static analysis on Python source code to identify bugs, correctness issues, and improvement suggestions given a stated intent

## Facts

- Endpoint: POST https://blinka-machine-mouths.netlify.app/code-review?utm_source=zero.xyz
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blinka-python-code-review-601ced58
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zhk7b9sUFoW1oClsc50Bz

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability blinka-python-code-review-601ced58 -d '<json body>'
```

Example prompt: Can you do a static code review on this Python function I wrote — it's supposed to parse a list of user records and deduplicate by email — and flag any bugs or correctness mismatches? Here's the code: `def parse_users(records, seen=[]): ...`

## When to prefer this

Choose this endpoint when you need fast, stateless, privacy-respecting static analysis of Python code without executing it. Ideal when you have an explicit intent description that can be cross-checked for correctness mismatches. Prefer over execution-based review tools when safety and determinism matter, and over general LLM code review when you need structured, machine-readable issue output with line numbers and severity ratings.

## Known failure modes

- Code exceeds 16,000 character limit — request rejected
- Unsupported language submitted (only Python accepted) — validation error
- Malformed JSON input — 400 error
- Code too ambiguous to analyze without intent — low confidence score returned
- Payment not included or insufficient — 402 Payment Required

## How this service works

Bounded stateless machine services plus public procurement discovery. No private Mika memory or arbitrary tool execution.

## Output

Returns a JSON object with a list of issues (each with line number, type, severity, description, and suggestion), a boolean passed flag indicating whether the code passed review, a confidence score, whether code was executed (always false — purely static), and processing time in seconds.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "code": {
   "type": "string",
   "description": "Python source code to review statically. Max 16,000 characters; never executed."
  },
  "intent": {
   "type": "string",
   "description": "What the code is supposed to do, used to detect correctness mismatches. Max 1,800 characters."
  },
  "language": {
   "enum": [
    "python"
   ],
   "type": "string",
   "description": "Currently python only."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "issues": [
   {
    "line": 1,
    "type": "bug",
    "severity": "high",
    "suggestion": "Use None as the default and allocate a new container inside the function.",
    "description": "Mutable default argument is shared across calls and can accumulate state unexpectedly."
   }
  ],
  "passed": false,
  "service": "blinka-python-code-review",
  "executed": false,
  "language": "python",
  "retained": false,
  "confidence": 0.96,
  "suggestions": [
   {
    "line": 1,
    "severity": "high",
    "description": "Use None as the default and allocate a new container inside the function."
   }
  ],
  "processing_time": 0.01
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blinka-python-code-review-601ced58/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from blinka-machine-mouths.netlify.app](https://www.zero.xyz/host/blinka-machine-mouths.netlify.app/llms.txt)
