ToolCallAudit

data class ToolCallAudit(val timestamp: Long, val toolName: String, val clientLabel: String?, val argumentsJson: String?, val success: Boolean, val errorMessage: String?, val durationMs: Long)

One audited tools/call. Captured by McpProtocolImpl after the tool runs and handed to the host's AuditSink.

Constructors

Link copied to clipboard
constructor(timestamp: Long, toolName: String, clientLabel: String?, argumentsJson: String?, success: Boolean, errorMessage: String?, durationMs: Long)

Properties

Link copied to clipboard

the raw arguments object as sent, or null if none

Link copied to clipboard

which bearer credential made the call (primary / a paired-client label / anonymous on an open server), or null for transports that don't authenticate (in-process)

Link copied to clipboard

how long execute took

Link copied to clipboard

the failure envelope when success is false

Link copied to clipboard

whether the tool reported success

Link copied to clipboard

wall-clock time the call completed (epoch millis)

Link copied to clipboard

the invoked tool