Skip to main content
Glama

audit_event_emit

POSTs a governance event to the audit-stream-py instance configured by AUDIT_STREAM_URL and AUDIT_STREAM_TOKEN. This sends kind, caller-asserted source, and payload to that service.

Instructions

POSTs a governance event to the audit-stream-py instance configured by AUDIT_STREAM_URL and AUDIT_STREAM_TOKEN. This sends kind, caller-asserted source, and payload to that service. The bearer token authenticates this MCP process, not the claimed producer or tenant. Obtain the user's approval before recording an event; omit secrets and personal data unless the service is approved for them. The server assigns event_id/timestamp/prev_hash/hash. Returns a validated service event receipt or a structured error; receipt does not prove durable storage or event completeness.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYesThe audit-stream-py service accepts only its declared event kinds (for example decision_card_drafted, request_denied, or watch_drifted). Use 'other' for ad-hoc kinds; unknown values are rejected by the sink.
sourceYesCaller-asserted ASCII producer label, not an authenticated identity. Use a stable identifier such as 'mcp-kinetic-gain' or 'manual'; do not claim another producer's identity without evidence.
payloadNoOptional plain-object payload to record alongside kind+source. Invalid supplied payloads are rejected, not dropped.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / properties / kind / description
      Previous value: -"Event kind. Conventionally snake_case; matches the event kinds emitted by Kinetic Gain producers (decision_card_drafted, request_denied, breaker_opened, slo_burn_started, attestation_failed, watch_drifted, ...). Use 'other' for ad-hoc kinds not yet in the producer catalogue."New value: +"The audit-stream-py service accepts only its declared event kinds (for example decision_card_drafted, request_denied, or watch_drifted). Use 'other' for ad-hoc kinds; unknown values are rejected by the sink."
    • addedInput schema / properties / kind / maxLength
      Added value: +128
    • addedInput schema / properties / kind / pattern
      Added value: +"^[a-z][a-z0-9_]*$"
    • changedInput schema / properties / payload / description
      Previous value: -"Free-form structured payload to record alongside kind+source."New value: +"Optional plain-object payload to record alongside kind+source. Invalid supplied payloads are rejected, not dropped."
    • changedInput schema / properties / source / description
      Previous value: -"Who's emitting. Use a stable producer identifier (e.g. 'mcp-kinetic-gain', 'manual', or one of the suite producer names)."New value: +"Caller-asserted ASCII producer label, not an authenticated identity. Use a stable identifier such as 'mcp-kinetic-gain' or 'manual'; do not claim another producer's identity without evidence."
    • addedInput schema / properties / source / maxLength
      Added value: +128
    • addedInput schema / properties / source / minLength
      Added value: +1
    • addedInput schema / properties / source / pattern
      Added value: +"^[A-Za-z0-9][A-Za-z0-9_.:-]*$"
  2. First observedv0.9.0

TDQS

A4.1/5.0
Behavior5/5

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

With annotations already covering the safety profile, the description adds substantial non-obvious behavior: the bearer token authenticates the MCP process rather than the claimed producer/tenant, the server assigns event_id/timestamp/prev_hash/hash, and the returned receipt does not prove durable storage or completeness. These are exactly the caveats an agent needs before emitting a governance event.

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?

The core action and endpoint are front-loaded in the first sentence, and each following sentence carries a distinct caveat (auth scope, approval/privacy, server-assigned fields, receipt limits). It is dense but earns its length; only the closing receipt caveat could be trimmed without much loss.

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?

For a non-idempotent, open-world mutation with no output schema and a nested payload object, the description covers the essential ground: where it POSTs, what is sent, what auth means, safety/privacy constraints, server-assigned fields, and the return shape. An agent has enough 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 kind, source, and payload are already fully documented in the schema, including the caller-asserted source warning and the 'other' kind fallback. The description only restates 'kind, caller-asserted source, and payload' without adding format or validation detail beyond the schema, 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?

The description states a precise verb+resource: 'POSTs a governance event to the audit-stream-py instance configured by AUDIT_STREAM_URL and AUDIT_STREAM_TOKEN.' That clearly separates it from read-side siblings like audit_events_query or audit_event_inspect. However, it never names the closest alternative, audit_event_compose, so sibling selection still requires inference.

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?

It gives concrete preconditions: obtain user approval before recording, and omit secrets/personal data unless the service is approved for them. This is clear operational context, but it stops short of an explicit when-to-use-this-vs-a-sibling statement (e.g., compose vs emit, or when the token is not configured).

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

Deploy Server

Other Tools