Metis · Data Guardian — Log Consent Event
log_consent_eventAppend an audit entry to the consent ledger whenever an agent processes data, recording the action, timestamp, data classification, agent, session, and notes for traceability.
Instructions
Append a row to the consent_ledger table.
Call this whenever an agent processes data so there is an audit trail
of what was processed, when, and under what classification.
Args:
action: Short description — e.g. 'scan_document', 'anonymize_patient_data'.
data_classification: 'PUBLIC' | 'INTERNAL' | 'CONFIDENTIAL' | 'SENSITIVE'.
agent_slug: Which agent performed the action.
notes: Free-text context.
session_id: Current session identifier.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "log_consent_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| action | Yes | ||
| agent_slug | No | ||
| session_id | No | ||
| data_classification | No | PUBLIC |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |