Skip to main content
Glama

Export audit logs

export_audit_logs
Read-onlyIdempotent

Export audit logs since a time as JSON, CEF or CSV (Enterprise; owner or admin), oldest first. since and until are Unix milliseconds. Filter by categories, eventTypes, actorId, resourceType, resourceId or status. When meta.hasMore is true, pass meta.nextCursor back as cursor for the next page.

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": {
      "since": "<since>"
    },
    "name": "export_audit_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 100.
sinceYesUnix milliseconds.
untilNoUnix milliseconds.
cursorNonextCursor from the previous page of results.
formatNojson, cef or csv.
statusNosuccess or failure.
actorIdNoUser ID of the actor.
categoriesNoauthentication, authorization, data_access, data_modification, configuration, security, system.
eventTypesNoEvent types such as project.deleted.
resourceIdNoResource ID.
resourceTypeNoResource type such as project.

Output Schema

NameRequiredDescriptionDefault
logsYes
metaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already establish the safe read-only, idempotent, closed-world profile, and the description still adds real substance: plan requirement (Enterprise), authorization requirement (owner or admin), result ordering (oldest first), and the exact pagination contract using meta.hasMore and meta.nextCursor. That is the kind of non-schema context an agent cannot derive from the structured fields.

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 purpose, format, and eligibility before filters and pagination. Minor waste comes from re-enumerating categories and formats that the schema already declares, but nothing is confusing or padded.

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

Completeness5/5

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

For an 11-parameter export with a published output schema, the description covers purpose, restrictions, filtering surface, ordering, and pagination, so an agent can call it and page through results without guessing. Return-value details are appropriately left to the output schema.

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%, so the baseline is 3; the description largely restates what the schema already says (Unix milliseconds, the json/cef/csv enum, the list of filterable fields). The only marginal addition is tying the cursor parameter to meta.nextCursor, which the schema's own 'nextCursor from the previous page' wording already conveys.

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

Purpose4/5

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

States a specific verb and resource ('Export audit logs') plus output formats and ordering ('oldest first'), which is clear enough to separate it from read-only siblings like get_audit_log_stats or verify_audit_log_chain. It never names a sibling to rule out, so differentiation is inferred rather than stated.

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 the conditions that gate use — 'Enterprise; owner or admin' — which is exactly the eligibility context an agent needs before calling. It does not state when NOT to use this tool or point to an alternative for log statistics or chain verification, so the guidance is clear but incomplete.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources