# Hermes Micro-Agent – Python Debug

> Hermes Micro-Agent – Python Debug is a paid API for AI agents from hermesmicroservice.theworkpc.com, paid per call via x402, $0.25/call, status unknown (last checked 2026-10-30).

Analyzes and debugs Python code snippets, identifying errors and suggesting fixes, paid per-call via HTTP 402 on Base USDC.

## Facts

- Endpoint: POST https://hermesmicroservice.theworkpc.com/python_debug?utm_source=zero.xyz
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hermes-micro-agent-python-debug-d902a0f4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OmIhPCaykTrW_yk_ZEODQ

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 hermes-micro-agent-python-debug-d902a0f4 -d '<json body>'
```

Example prompt: Can you debug this Python function for me? It keeps throwing a TypeError on line 12: `def add(a, b): return a + b` called with `add('3', 5)`.

## When to prefer this

Choose this endpoint when an AI agent needs a quick, pay-per-use Python debugging capability without managing a long-running code execution environment. It is especially suitable for agentic pipelines that encounter Python errors at runtime and need an on-demand, micropayment-gated fix without committing to a subscription service.

## Known failure modes

- Empty or missing prompt field returns an error
- Non-Python code submitted may yield inaccurate or irrelevant debug output
- Payment not settled on-chain results in HTTP 402 rejection before execution
- Very large code snippets may be truncated or produce incomplete analysis
- Network timeouts on the theworkpc.com host may yield no response

## How this service works

20 paid AI and data micro-tasks over HTTP 402 on Base (USDC): summarize, extract, keywords, sentiment, translate, rewrite, proofread, python_debug, code_lint, code_explain, code_refactor, code_review, json_minify, json_query, csv_to_json, hash, base64, convert, describe_image, probe_media. Each call is priced per-task and verified on-chain before execution.

## Output

A plain-text string containing a debugging analysis of the submitted Python code, including identification of the error(s), explanation of the root cause, and suggested fixes or corrected code snippets.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "prompt"
 ],
 "properties": {
  "task": {
   "type": "string",
   "description": "Which micro-task to run"
  },
  "input": {
   "type": "string",
   "description": "Alias for prompt"
  },
  "prompt": {
   "type": "string",
   "description": "Text to process"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "string"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hermes-micro-agent-python-debug-d902a0f4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hermesmicroservice.theworkpc.com](https://www.zero.xyz/host/hermesmicroservice.theworkpc.com/llms.txt)
