{"uid":"cap_iXdyM8bsfTSORfsmfvuUJ","slug":"aun-tool-call-audit-d38a1993","name":"AUN Tool-Call Audit","description":"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.","url":"https://a-upgradenet.com/x402/tool-call-audit?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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"}}},"responseSchema":{"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"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_npSAEXr6bu_m1lzA_KYY4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Diagnosing a failing customer support agent","prompt":"My customer support agent keeps misusing the escalate_ticket tool and I'm not sure if it's the system prompt or the tool definitions causing the issue — can you audit the prompt and tools and give me a recommended fix with a performance score?"},{"title":"Pre-deployment agent configuration review","prompt":"Before I ship my new research agent to production, can you run an audit on its system prompt and 5 tool definitions to see what the baseline pass rate is and whether the recommended configuration would meaningfully improve it?"},{"title":"Comparing tool-call accuracy before and after a refactor","prompt":"I just rewrote my agent's system prompt from scratch — can you audit both the old and new versions with my tool schemas and show me the delta in performance so I know if the rewrite actually helped?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:32:05.704Z","isFirstParty":false,"canonicalSlug":"aun-tool-call-audit-d38a1993"}