Skip to main content
Glama

Export audit log

stack_audit_export
Read-only

Export the account's audit log as json, ndjson or csv, newest first, with each entry's hash. Never metered. With no limit it returns the newest 2,000 entries, which fits one answer; the json format then carries next_offset when more remain, and the next page is the same call with offset set to it (ndjson and csv: add the limit you got to the previous offset). A larger limit, up to 50,000, that does not fit one call is saved to the account's drive and the call answers with the file; narrow it with from and to to read it here. Reading the record is a controls feature: without controls the API answers 402 CONTROLS_REQUIRED.

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": "stack_audit_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoISO 8601 datetime: last entry included
fromNoISO 8601 datetime: first entry included
limitNoMost entries to return, 1 to 50,000. Default 2,000
formatNoDefault json
offsetNoEntries to skip, for paging

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / limit / description
      Previous value: -"Most entries to return, 1 to 50,000"New value: +"Most entries to return, 1 to 50,000. Default 2,000"
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the readOnly/non-destructive annotations by disclosing that exports are never metered, the 2,000-entry default, the 50,000 ceiling, that oversized exports land in the account's drive, and that the API returns 402 CONTROLS_REQUIRED without the controls feature. That authentication/prerequisite disclosure is exactly the kind of behavioral context annotations cannot supply.

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?

A dense but front-loaded paragraph — purpose first, then paging mechanics, then the controls prerequisite. Every sentence carries operational information; there is no filler to cut.

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?

Even without an output schema, the definition explains what comes back in each mode (paged entries with hashes and next_offset, or a file), and it covers the access prerequisite. Nothing an agent needs in order to call this correctly is missing.

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, but the description adds real meaning: limit determines whether results are returned inline or written to drive, offset is described per format (next_offset in json, arithmetic for ndjson/csv), and from/to are framed as a narrowing mechanism. This goes beyond the schema's field-level text.

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 the account's audit log — plus the formats (json, ndjson, csv), ordering (newest first) and the inclusion of each entry's hash. It does not explicitly name a sibling such as stack_audit_list or stack_audit_verify_chain to contrast with, so it stops short of full differentiation.

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 concrete conditional guidance: use from/to to keep the result readable in one call, use offset (or limit+offset for ndjson/csv) to page, and expect a drive-saved file when a large limit does not fit. It never explicitly says when to prefer a different tool, but the internal when-to-do-what rules are unusually clear.

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.