MCP PROMPT · AI KNOWLEDGE

/prune-knowledge

Audit knowledge documents and delete outdated or failed ones.

01 · The flow

What the agent does, in order.

  1. 01 Call list_knowledge_documents to see all docs.
  2. 02 Identify candidates for deletion: status="failed" (scrape never worked), outdated content, duplicates.
  3. 03 For each candidate, confirm with the user before deleting.
  4. 04 Call delete_knowledge_document with documentId. Destructive — the R2 content is removed and the agent loses retrieval access immediately.
  5. 05 Summarise: how many deleted, remaining count.
02 · Tools called

2 typed tools in sequence.

  • list_knowledge_documents
  • delete_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.

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 .