Skip to main content
Glama

audit_log_append

Record behavioral events to an immutable audit log with risk scoring and automatic certificate revocation check for high-risk events.

Instructions

Append a behavioral event to this agent's immutable audit log. Use this to voluntarily record actions — transactions, data operations, API calls. Returns the risk score for the event and a transaction ID for traceability. High-risk events (score >= 0.85) automatically trigger a certificate revocation check.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
metadataYesArbitrary key-value pairs describing the event. For transactions: include amount, currency, venue. For data ops: include resource_type, resource_id, operation. Avoid PII — this is stored in the immutable audit log.
event_typeYesType of behavioral event being logged. Use "transaction_initiated" for financial operations, "data_mutation" for write/delete ops, "api_call" for standard API calls.
session_idNoOptional session ID for grouping related events in the audit trail.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations exist, so the description must disclose behavior. It reveals immutability of the log, return values (risk score and transaction ID), and automatic certificate revocation for high-risk events (score >= 0.85). This is good context beyond basic logging.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the primary action, no unnecessary words. Every sentence adds value: purpose, use cases, return values, and an important behavioral note.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema, but the description correctly states return values (risk score and transaction ID) and a key side effect (certificate revocation). With 3 parameters (including a nested object) and good schema coverage, the description is sufficient for an agent to invoke correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds concrete examples for metadata (amount, currency, venue for transactions; resource_type, resource_id for data ops) and elaborates on event_type usage (e.g., 'transaction_initiated' for financial ops). This provides practical guidance beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'append' and the resource 'agent's immutable audit log'. It distinguishes the tool from siblings (check_risk_score, verify_agent_scope) by focusing on recording events for traceability.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says when to use (voluntarily record actions like transactions, data ops, API calls) and provides specific event_type guidance. However, it does not mention when not to use or alternatives, though siblings are distinct.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other 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/kakunin-ai/kakunin-mcp'

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