Skip to main content
Glama

audit_events_query

Retrieve recent governance events with optional filters to surface denies, attestation failures, breaker trips, and other audit moments.

Instructions

GET recent governance events from a running audit-stream-py instance (env var AUDIT_STREAM_URL), with optional server-side filters. Use to surface the last N denies, attestation failures, breaker trips, contract incompatibilities, or any other governance moment a user is investigating. Returns the events array plus a count field. Requires AUDIT_STREAM_URL; returns a structured error otherwise.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNoFilter by event kind (exact match). Omit to get all kinds.
limitNoCap the number of events returned. Defaults to the server's own cap.
sourceNoFilter by source (exact match). Omit to get all sources.
since_idNoReturn only events with event_id > since_id. Use for incremental tailing without re-fetching the whole chain.
Behavior4/5

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

The description implies a read-only operation ('GET') and discloses error behavior when AUDIT_STREAM_URL is missing. It does not mention side effects, rate limits, or idempotency, but for a read tool with no annotations, this is adequate.

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?

The description is concise, with two front-loaded sentences that immediately convey the main function and use cases. Every sentence adds value, and there is no redundancy.

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

Completeness3/5

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

The description covers the tool's goal and return format (events array + count), but without an output schema, it lacks details about the structure of individual events, which is important for an agent to process results.

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 coverage is 100%, so parameters are already well-documented. The description adds general context about filtering but does not significantly enhance parameter semantics beyond the schema.

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?

The description clearly states the tool retrieves governance events from an audit-stream-py instance with filtering. It uses specific verbs ('GET', 'surface') and resource ('events'), and distinguishes from sibling tools by emphasizing querying with server-side filters and returning a count.

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?

The description provides use cases (e.g., 'surface the last N denies, attestation failures') and mentions a prerequisite (AUDIT_STREAM_URL). However, it does not explicitly state when to avoid this tool or suggest alternatives among the many sibling tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mizcausevic-dev/mcp-kinetic-gain'

If you have feedback or need assistance with the MCP directory API, please join our Discord server