# AUN Tool-Call Audit Pro

> AUN Tool-Call Audit Pro is a paid API for AI agents from a-upgradenet.com, paid per call via x402, $0.15/call, status unknown (last checked 2026-10-22).

Analyzes an AI agent's system prompt and tool definitions, then returns an optimized system prompt and tool set with a benchmark improvement report.

## Facts

- Endpoint: POST https://a-upgradenet.com/x402/tool-call-audit-pro?utm_source=zero.xyz
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aun-tool-call-audit-pro-30c33f92
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M8n8Iez08Jb26jQmwAqJU

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 aun-tool-call-audit-pro-30c33f92 -d '<json body>'
```

Example prompt: Can you audit my agent's current system prompt and its 5 tool definitions to see if they can be improved? Here's the system prompt: 'You are a helpful customer support agent...' and the tools are my search, lookup, escalate, summarize, and ticket-create functions — give me a benchmark score and a recommended upgrade.

## When to prefer this

Choose this endpoint when you need a data-driven, benchmarked audit of an AI agent's system prompt and tool definitions with a quantified before/after improvement score and concrete recommended replacements — rather than a generic prompt review or manual human evaluation.

## Known failure modes

- Missing required 'system_prompt' or 'tools' fields returns a validation error
- Providing more than 12 tools violates schema maxItems constraint
- System prompt exceeding 8000 characters may be rejected or truncated
- Payment failure (x402) if USDC balance is insufficient
- Unsupported language value outside ['en','es'] enum causes rejection

## How this service works

Tool-Call Audit Pro: measures how an AI agent calls its tools on a hidden test, returns a fix that keeps the interface unchanged, and re-measures. Charged only after the report exists.

## Output

Returns a JSON report containing: audit tier (e.g. 'basic'), a verdict ('improved' or otherwise), baseline held-out test pass rate, improved held-out test pass rate, a recommended optimized system prompt, a recommended set of tools, the delta improvement in percentage points, and any remaining failure cases.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "system_prompt",
    "tools"
   ],
   "properties": {
    "tools": {
     "type": "array",
     "items": {
      "type": "object",
      "required": [
       "name",
       "description",
       "parameters"
      ],
      "properties": {
       "name": {
        "type": "string"
       },
       "parameters": {
        "type": "object"
       },
       "description": {
        "type": "string"
       }
      }
     },
     "maxItems": 12,
     "minItems": 1,
     "description": "OpenAI function-calling tools: {name, description, parameters (JSON schema)}"
    },
    "system_prompt": {
     "type": "string",
     "description": "The agent's system prompt (max 8000 chars). Never include secrets."
    }
   }
  },
  "language": {
   "enum": [
    "en",
    "es"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tier": "basic",
  "report": {
   "verdict": "improved",
   "baseline": {
    "held_out": {
     "rate": 0.55,
     "total": 11,
     "passed": 6
    }
   },
   "improved": {
    "held_out": {
     "rate": 0.91,
     "total": 11,
     "passed": 10
    }
   },
   "recommended": {
    "tools": [
     "..."
    ],
    "system_prompt": "..."
   },
   "delta_points": 36.4,
   "remaining_failures": []
  },
  "status": "completed"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aun-tool-call-audit-pro-30c33f92/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from a-upgradenet.com](https://www.zero.xyz/host/a-upgradenet.com/llms.txt)
