Skip to main content
Glama

Get Audit Log

get_audit_log
Read-onlyIdempotent

Read immutable company audit records covering financial transactions, CRM deletes, memory changes, playbook runs, access and member updates. Filter by domain, action, actor, entity, or date range to trace who did what.

Instructions

Read the immutable audit log for this company. Owners can read all entries (scope='all'). Any member can read their own entries (scope='mine'). Covers financial transactions, CRM deletes, org memory changes, playbook runs, access management, and member changes. Records cannot be modified or deleted.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_audit_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results (default 50).
scopeNo'all' returns all company entries (owner-only). 'mine' returns only your own actions (any member). Defaults to 'all' for owners, 'mine' for non-owners.
actionNoFilter by exact action name (e.g. 'add_transaction', 'run_playbook').
domainNoFilter by domain group. 'financial' = transactions, accounts, categories. 'crm' = customer and tag deletes. 'memory' = org-scoped memory store/forget. 'playbooks' = playbook runs. 'access' = financial access changes. 'members' = member add/remove/promote.
to_dateNoReturn entries on or before this date (YYYY-MM-DD).
actor_idNoFilter by the user_id who performed the action.
entity_idNoFilter by the affected record UUID (e.g. a specific account_id or customer_id).
from_dateNoReturn entries on or after this date (YYYY-MM-DD).
entity_typeNoFilter by entity type (e.g. 'financial_transaction', 'customer').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so safety is covered structurally. The description adds genuinely new behavioral facts: the log is immutable, records cannot be modified or deleted, and visibility is permission-gated. It omits ordering/pagination behavior for a potentially large result set.

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

Conciseness4/5

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

Four short sentences, front-loaded with the resource and the access rule. The domain list is somewhat duplicative of the domain parameter's enum description, but it still serves the purpose of telling the agent what kinds of events exist.

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?

For a nine-parameter, zero-required read tool with full schema coverage and annotations present, the description covers access model, scope, and content domains well. The remaining gap is return-value shape — there is no output schema, so the agent learns nothing about the fields of an audit entry or result ordering.

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

Parameters3/5

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

Schema description coverage is 100%, with detailed per-parameter descriptions including enum meanings and date formats, so the baseline is 3. The description restates the scope semantics ('all' = owner-only, 'mine' = any member) and maps domains, but adds no filtering semantics beyond what the schema already documents.

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?

States a specific verb and resource ('Read the immutable audit log for this company') and immediately scopes it by role. No sibling tool offers audit history, and the enumeration of covered domains (financial, CRM, memory, playbooks, access, members) makes the resource boundary unmistakable.

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?

Gives explicit role-based routing: owners use scope='all', any member uses scope='mine'. The description clarifies when to use this tool versus the deletion/history siblings. It does not name alternative tools for narrower lookups (e.g. list_deleted, get_project_history), so it falls short of full when/when-not guidance.

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

Deploy Server

Other Tools