{"uid":"cap_4iYnQM0dw7bwkpN8l5Ows","slug":"aun-memory-health-check-cf9f345c","name":"AUN Memory Health Check","description":"Memory Health Check: scans an AI agent's long-term memory for leaked secrets, personal data, duplicates, contradictions and vague entries; returns a 0-100 score, issues and a cleaned memory list ready to apply.","url":"https://a-upgradenet.com/x402/memory-health?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"purpose":{"type":"string","description":"What the agent is for (improves the relevance check)."},"memories":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","required":["text"],"properties":{"id":{"type":"string"},"text":{"type":"string"},"created_at":{"type":"string"}}}]},"maxItems":300,"minItems":1}}},"responseSchema":{"type":"json","example":{"grade":"C","score":62,"issues":[{"ids":["m3"],"type":"secret","action":"redact","severity":"critical"},{"ids":["m1","m2"],"type":"contradiction","action":"delete","severity":"high"}],"status":"completed","summary":{"vague":0,"secrets":1,"duplicates":0,"personal_data":0,"contradictions":1},"cleanup_plan":{"delete":["m2"],"redact":["m3"],"rewrite":[]},"cleaned_memories":[{"id":"m1","text":"Customer Ana prefers delivery after 6pm"},{"id":"m3","text":"[REDACTED_SECRET]"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8tjx-W-mxLTpzKPPP5Zf6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Audits a batch of AI agent memories for issues like secrets, contradictions, duplicates, and vague entries, then returns a graded cleanup plan with redacted/cleaned versions.","exampleAgentPrompt":"Can you audit the health of my customer support agent's memory bank? It's a shopping assistant that handles delivery preferences. Here are 50 memory entries — check them for secrets, contradictions, duplicates, or anything that should be redacted, and give me a grade and a cleanup plan.","exampleUseCases":[{"title":"Pre-deployment memory security scan","prompt":"Before I deploy my sales agent, I want to make sure none of its stored memories contain API keys, passwords, or other secrets. It's a B2B outreach assistant — can you run a health check on these 120 memory entries and tell me what needs to be redacted?"},{"title":"Resolving contradictory customer preferences","prompt":"My customer service agent seems to be giving inconsistent answers — I think its memory has contradictions. Can you audit these 80 memories from my e-commerce support bot and flag any conflicting facts so I know which ones to delete?"},{"title":"PII audit for compliance review","prompt":"I need to make sure my AI scheduling assistant isn't storing any personal data it shouldn't have. Can you check these 200 memories for PII or sensitive personal information and give me a health grade and a list of what to clean up?"}],"resultDescription":"Returns a letter grade (e.g. 'C') and numeric score (0-100) for the memory batch, a list of specific issues (type, severity, affected memory IDs, recommended action), a summary count of issue categories (vague, secrets, duplicates, personal_data, contradictions), a structured cleanup plan listing which memory IDs to delete, redact, or rewrite, and the cleaned/redacted versions of affected memories.","failureModes":["Empty or missing 'memories' array returns a validation error","Exceeding 300 memory items results in rejection","Malformed memory objects missing required 'text' field cause parse errors","Payment failure or insufficient USDC balance blocks the request","Ambiguous or very short memory texts may produce inaccurate grading"],"whenToPreferThis":"Choose this endpoint when you need to audit and sanitize AI agent memory stores before deployment, compliance reviews, or periodic hygiene checks — especially when secrets, PII, contradictions, or stale data may have accumulated. Prefer it over generic LLM prompting when you need structured issue categorization, severity ratings, and actionable cleanup plans with IDs tied back to original memory entries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T18:42:40.899Z","isFirstParty":false,"canonicalSlug":"aun-memory-health-check-cf9f345c"}