Skip to main content
Glama

query_events

Read-onlyIdempotent

Query this account's business-event timeline (GitHub releases/PRs, PagerDuty incidents, Jira issues, GitLab, Salesforce onboarding/churn, Stripe subscription created/canceled, Vercel production deploys, Linear issue creation, Sentry newly reported errors) — the same events overlaid on the Cost/Event Explorer charts. Always scope with start_date/end_date: there is no pagination and results are capped at 5000 rows (oldest-first), so an unscoped query over a long history may be silently truncated. Carries no cost figure. Mirrors GET /api/events.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qNoFree-text, case-insensitive substring match against the event title
end_dateNoISO-8601 end of the date range (inclusive)
meta_repoNoRestrict to these GitHub repos (metadata.repo) — only narrows events that carry a repo; events with no repo (e.g. Salesforce onboarding/churn) are unaffected regardless of value
source_idNoRestrict to one event source, e.g. "github", "pagerduty", "jira"
event_typeNoRestrict to these event types, e.g. "issue_created", "deploy"
start_dateNoISO-8601 start of the date range (inclusive)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare read-only/idempotent/non-destructive, and the description adds substantial non-obvious behavior: no pagination, oldest-first ordering, a hard 5000-row cap with silent truncation, and that results carry no cost figure. These are exactly the runtime traits an agent needs beyond the safety hints.

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-loads the core purpose and the critical scoping warning; the long parenthetical source list is informative rather than filler. Dense but every clause carries signal, so only marginally verbose.

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 compensates by disclosing the result cap, row ordering, and the absence of cost figures, and by noting the underlying REST endpoint. It does not describe the returned event fields, but the coverage is strong for a read-only timeline query.

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% so the baseline is 3, but the description adds semantics the schema lacks: it explains that start_date/end_date are effectively mandatory for correctness rather than optional filters. That elevates it above the schema-only baseline.

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 (query) and resource (business-event timeline) and enumerates the concrete event sources (GitHub, PagerDuty, Jira, Stripe, etc.) so it is unmistakably distinct from sibling cost/usage tools like query_costs and query_usage. It also clarifies the resource is 'the same events overlaid on the Cost/Event Explorer charts'.

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?

Gives a clear directive — 'Always scope with start_date/end_date' — plus the reason (no pagination, 5000-row cap, silent truncation on long histories). It does not name an explicit alternative sibling (e.g. when to prefer query_costs), so it stops short of full when/when-not routing.

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