Skip to main content
Glama

query_agent_run_mission_events

Read-onlyIdempotent

Search mission-event records across agent runs to trace execution history or audit lineage. Filter by run, event type, status, or snapshot IDs; paginated results show newest events first.

Instructions

Search canonical mission-event records across all of the organization's agent runs, paginated (defaults page 1, limit 25) and newest first. Filter by run_id or event_type to pinpoint, or by status, request_hash, policy_snapshot_id, or schema_snapshot_id for lineage audits. Use get_agent_run_mission_events when you already know the run_id. Read-only. Returns data, total, page, limit, and pages.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo1-based page number; defaults to 1.
limitNoEvents per page, up to 200; defaults to 25.
run_idNoKeep only events of this run.
statusNoKeep only events of runs in this status.
event_typeNoKeep only events of this type, e.g. run_completed.
request_hashNoKeep only events of runs with this request hash.
policy_snapshot_idNoKeep only events under this execution-policy snapshot.
schema_snapshot_idNoKeep only events under this schema snapshot.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.1.3
    • addedInput schema / properties / event_type / description
      Added value: +"Keep only events of this type, e.g. run_completed."
    • addedInput schema / properties / limit / description
      Added value: +"Events per page, up to 200; defaults to 25."
    • addedInput schema / properties / page / description
      Added value: +"1-based page number; defaults to 1."
    • addedInput schema / properties / policy_snapshot_id / description
      Added value: +"Keep only events under this execution-policy snapshot."
    • addedInput schema / properties / request_hash / description
      Added value: +"Keep only events of runs with this request hash."
    • addedInput schema / properties / run_id / description
      Added value: +"Keep only events of this run."
    • addedInput schema / properties / schema_snapshot_id / description
      Added value: +"Keep only events under this schema snapshot."
    • addedInput schema / properties / status / description
      Added value: +"Keep only events of runs in this status."
  2. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds valuable behavioral details: pagination defaults (page 1, limit 25), ordering (newest first), and return fields (data, total, page, limit, pages). This enriches the agent's understanding beyond the annotations.

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?

Every sentence adds value: purpose, filtering, alternative, read-only, and return format. The description is front-loaded with the core action and is concise without fluff.

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 read-only search tool with 8 optional filters, the description covers all essential aspects: purpose, filters, pagination, ordering, alternative, and return structure. Since there is no output schema, the explicit listing of return fields (data, total, page, limit, pages) ensures the agent knows what to expect.

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?

Schema coverage is 100% with each parameter documented. The description adds semantic grouping: run_id/event_type for pinpointing and status/request_hash/policy_snapshot_id/schema_snapshot_id for lineage audits. This provides context beyond the schema, though it doesn't add syntax details, so a 4 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?

The description clearly states the tool searches 'canonical mission-event records across all of the organization's agent runs' with pagination and filtering. It explicitly differentiates from the sibling tool get_agent_run_mission_events, which is for when the run_id is already known, so an agent can distinguish between them without opening schemas.

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?

It explicitly directs the agent to use get_agent_run_mission_events when the run_id is known, and describes when to use various filters (pinpoint vs. lineage audits). This gives clear when-to-use and when-not-to-use guidance, leaving no ambiguity.

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