audit_knowledge_base
Audit support documentation offline before RAG indexing to detect conflicting policies, unqualified commitments, missing headings or escalation contacts, and prompt-injection patterns.
Instructions
Deterministically audit support documentation before indexing it into a RAG or AI customer agent. Runs completely offline with zero network calls or API key required, checking one or more Markdown, plain-text, or JSON files for conflicting policy time windows, unqualified commitments, currency ambiguity, missing headings, missing human escalation contacts, and embedded prompt-injection patterns. Returns JSON with score (0-100), grade (A-F), findings[], extractedFacts, recommendations[], and mode ('local_deterministic').
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "audit_knowledge_base"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Human-readable document title used in audit findings when supplying inline content. | Inline Knowledge Base |
| content | No | Inline Markdown, plain-text, or JSON policy documentation to audit. Provide content, filePath, or documents. | |
| filePath | No | Local filesystem path to a readable UTF-8 Markdown, text, or JSON file to audit. | |
| documents | No | Collection of multiple policy documents to audit together so cross-document contradictions (e.g., 14-day vs 30-day refunds) are detected. |