Skip to main content
Glama

Export a signed audit proof

gate_export_audit_proof
Destructive

Which signed audit records can I export for verification? Returns chained audit rows, decided-action feature snapshots and signed anchors; use it for a portable tamper-evident export instead of gate_read_audit's recent-call view, then check it with gate_verify_audit_proof. No sealed paths/bodies, notes, keys or IPs in the action labels. Legacy actions lack snapshots and are excluded. store_audit=false has no chain. Follow next_from for audit rows and next_actions_after as actions_after for labels (10,000 each). Use API/SDK to verify exports above the MCP request size limit. The signature is HMAC-SHA256. This also expires overdue held actions in the project and clears their stored request paths and bodies.

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": {
      "project_id": "<project_id>",
      "admin_key": "<admin_key>"
    },
    "name": "gate_export_audit_proof"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo
fromNo
admin_keyYesThe project admin key (ga_...). Read it from the .env; never print it.
project_idYesThe project id from project creation on the setup endpoint (/mcp/setup), e.g. p1a2b3...
actions_afterNoAction cursor from next_actions_after

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / project_id / description
      Previous value: -"The project id from gate_create_project, e.g. p1a2b3..."New value: +"The project id from project creation on the setup endpoint (/mcp/setup), e.g. p1a2b3..."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare destructiveHint=true and readOnlyHint=false, and the description supplies the missing context: the call also expires overdue held actions and clears their stored request paths and bodies, which explains the non-read-only, non-idempotent profile. It adds the HMAC-SHA256 signature algorithm, a MCP request size ceiling that forces API/SDK verification, and what is deliberately omitted from labels (no sealed paths/bodies, notes, keys, IPs). Slightly short of 5 because it does not say whether expiration is scoped only to this project's overdue items or how partial expiry failures behave.

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

Conciseness3/5

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

Content density is high and almost every sentence carries a real constraint, but the opening rhetorical question delays the operative statement, and the pagination sentence packs two cursors and a page size into one dense clause. Reordering so the export purpose leads would improve front-loading.

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 correctly takes on the burden of describing the return (chained rows, snapshots, both cursors) and the verification path, which is what an agent needs. The remaining gap is the from/to range semantics, which neither the schema nor the description pins down for a five-parameter tool.

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?

At 60% schema coverage the description must contribute, and it does: actions_after is explained as coming from next_actions_after and being a label cursor, with the 10,000 per page limit stated. project_id and admin_key are already covered by the schema, but from and to receive no explanation of what range they bound (audit rows vs. expired actions).

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 (export signed/chained audit proof) and immediately enumerates the contents: chained audit rows, decided-action feature snapshots, signed anchors. It explicitly distinguishes itself from gate_read_audit's recent-call view, so an agent can route correctly without opening a schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use (portable tamper-evident export) and names the alternative it replaces (gate_read_audit), plus the required follow-up step with gate_verify_audit_proof. It also states the exclusions in advance: legacy actions without snapshots are excluded and store_audit=false has no chain.

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