Skip to main content
Glama

Read the audit log

gate_read_audit
Read-onlyIdempotent

Which gateway calls happened recently? Returns recent gateway calls (time, app, matched route, status, reason, duration); use it to investigate individual calls across the project rather than gate_get_metrics aggregates or a single gate_get_run_timeline. Newest first, with totals by status and refusal reason for the returned calls. This view never returns bodies, query values or headers. For 24-hour totals and anomaly scores use gate_get_metrics; for a signed export an auditor can check, gate_export_audit_proof; for one run's history, gate_get_run_timeline.

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_read_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNoOptional: only this app id (app_...)
limitNoHow many calls (default 20)
statusNoOptional: only this HTTP status, e.g. "403"
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...

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 already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description still adds real value beyond them: newest-first ordering, per-status and per-refusal-reason totals, and the important disclosure that bodies, query values and headers are never returned. It stops short of describing pagination or how far back 'recent' reaches, which keeps it off a 5.

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?

Front-loaded with the core question and return shape, then routing, then privacy constraints. Slightly redundant: gate_get_metrics is introduced mid-paragraph and then re-introduced in the closing routing sentence, which could be merged. Otherwise every sentence carries information.

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?

There is no output schema, so the description carries the burden of describing return values, and it does: fields returned, ordering, aggregate totals, and what is deliberately excluded. Combined with the annotation-covered safety profile and fully documented parameters, an agent has everything needed to call it correctly.

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 app, limit, status, admin_key and project_id are already documented in the schema, including the default of 20 and the 1-100 range. The description adds only the ordering guarantee (newest first) and does not clarify filtering semantics such as how status and app combine. Baseline 3 is appropriate.

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?

Opens with a concrete question and then states the specific verb and resource: returns recent gateway calls with the exact fields (time, app, matched route, status, reason, duration). It explicitly contrasts itself with gate_get_metrics aggregates and a single gate_get_run_timeline, so an agent can distinguish it from siblings without opening any 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 routing: use this to investigate individual calls across the project, use gate_get_metrics for 24-hour totals and anomaly scores, gate_export_audit_proof for a signed export, and gate_get_run_timeline for one run's history. Both when-to-use and when-not-to-use are covered with named alternatives.

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