Skip to main content
Glama
Mailbuttons MCP Server

Mailbuttons MCP Server

Official
by mailbuttons

Export the audit log (Business)

mailbuttons_export_audit
Read-onlyIdempotent

Export a tamper-evident audit log with hash-chain fields for SIEM ingestion or integrity verification, supporting incremental pulls by time range and inbox filter.

Instructions

Export the customer's tamper-evident audit log for a SIEM, including the hash-chain fields (entry_hash, prev_hash) so a recipient can verify integrity. Business-tier only: requires the token's siem_export flag, otherwise returns siem_export_not_enabled. Read-only.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax entries to export.
sinceNoInclusive lower bound on created_at (RFC3339) — pass the last export's high-water mark for incremental pulls.
untilNoInclusive upper bound on created_at (RFC3339).
formatNoExport format (default jsonl).
inbox_idNoOptional inbox filter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.4

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations, it discloses a Business-tier authorization requirement, the precise error code returned when that requirement fails, and what makes the payload special (entry_hash/prev_hash hash-chain fields enabling recipient-side verification). That is exactly the kind of gating and payload context annotations cannot express.

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?

Three tightly packed sentences, front-loaded with purpose, then the tier gate, then nothing extraneous. The closing 'Read-only' restates the readOnlyHint annotation, which is mild redundancy, but the overall size is well matched to the tool.

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?

With no output schema, the description carries return-value burden and does identify the key integrity fields a caller will receive, plus the error path and tier gate. It does not sketch the broader record shape, but for a filtered export tool the essentials an agent needs before calling are present.

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 all five parameters (limit, since, until, format, inbox_id) are already documented, including the incremental-pull hint for `since` and the jsonl/cef enum. The description adds no further parameter meaning, so the baseline 3 applies.

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?

Opens with a specific verb and resource: export the customer's tamper-evident audit log, scoped to SIEM consumption and including hash-chain fields. The purpose is unmistakable, though it never names or contrasts with the sibling mailbuttons_audit_tail, so the agent must infer the boundary between 'tail' and 'export'.

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 clear context for when to reach for this tool (SIEM ingestion / integrity verification) and a hard precondition, the token's siem_export flag, with the exact failure token siem_export_not_enabled. It stops short of any explicit exclusion, such as directing live log-following to the tail sibling.

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