Skip to main content
Glama

dhis2_clear_audit_log

Clear DHIS2 audit logs to manage system performance and storage. Requires confirmation to ensure safe deletion of log data.

Instructions

Clear the audit log (requires confirmation)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmedNoSet to true to confirm clearing the audit log

Implementation Reference

  • The main handler for the 'dhis2_clear_audit_log' tool. It calls auditLogger.clear() to clear the audit log entries and returns a success confirmation message.
    case 'dhis2_clear_audit_log': auditLogger.clear(); return { content: [{ type: 'text', text: `🗑️ Audit log cleared successfully.` }] };
  • The clear() method in AuditLogger class that empties the in-memory audit entries array and logs the clearance to console.
    clear(): void { this.entries = []; console.log('[AUDIT] Audit log cleared'); }

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dradebo/dhis2-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server