# AUN Tool-Call Audit

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

Audits and optimizes an AI agent's system prompt and tool definitions, returning a verified upgrade report with a recommended improved configuration and performance delta.

## Facts

- Endpoint: POST https://a-upgradenet.com/x402/tool-call-audit?utm_source=zero.xyz
- Price: $0.1/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-d38a1993
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iXdyM8bsfTSORfsmfvuUJ

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-d38a1993 -d '<json body>'
```

Example prompt: Can you audit my agent's current system prompt and tool definitions and tell me how much better it would perform with the recommended upgrades? Here's the system prompt: 'You are a customer support agent...' and I have 3 tools: get_order_status, issue_refund, and escalate_ticket.

## When to prefer this

Choose this endpoint when you need a quantified, auditable assessment of an AI agent's system prompt and tool-calling configuration, specifically when you want a before/after performance delta and an actionable recommended configuration. Prefer this over generic prompt review tools when you need structured pass-rate metrics, a verified upgrade verdict, and a concrete recommended system prompt plus tool list ready to deploy.

## Known failure modes

- System prompt exceeds 8000 character limit — request rejected
- Tools array is empty or exceeds 12 items — validation error
- Missing required 'name' or 'parameters' fields on a tool object — schema error
- Invalid language enum value (must be 'en' or 'es') — bad request
- Payment not received or insufficient — 402 response, audit not run
- Malformed JSON body — parsing error

## How this service works

Tool-Call Audit: 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: a tier label (e.g. 'basic'), a verdict ('improved' or otherwise), the baseline held-out pass rate and count, the improved held-out pass rate after applying recommendations, a recommended system prompt and tool list, a numeric delta_points improvement score, any remaining failures, and a status field confirming completion.

## 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-d38a1993/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)
