MCP PROMPT · AI KNOWLEDGE
/prune-knowledge
Audit knowledge documents and delete outdated or failed ones.
01 · The flow
What the agent does, in order.
- 01 Call list_knowledge_documents to see all docs.
- 02 Identify candidates for deletion: status="failed" (scrape never worked), outdated content, duplicates.
- 03 For each candidate, confirm with the user before deleting.
- 04 Call delete_knowledge_document with documentId. Destructive — the R2 content is removed and the agent loses retrieval access immediately.
- 05 Summarise: how many deleted, remaining count.
02 · Tools called
2 typed tools in sequence.
list_knowledge_documentsdelete_knowledge_document
Every tool ships with MCP annotations (title, readOnlyHint, destructiveHint, openWorldHint, idempotentHint). Clients can gate destructive calls before invoking. Full catalog: /server-card.json.
03 · Related
More ai knowledge playbooks.
Try this in your agent.
Connect FavCRM to Cursor, Claude, ChatGPT, or any MCP client. Type /prune-knowledge in chat. Agent runs the steps in order.
Verified .