Skip to main content
Glama

Query events

query_events
Read-only

Recent events, newest first. Filter by event name, user, and time window.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "query_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
eventNo
limitNo
user_idNoA user's id in your app.
since_daysNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds one genuinely new behavioral fact — results are ordered newest first — but omits the default and maximum result count (limit defaults to 25, caps at 100) and says nothing about pagination or how far back results can reach.

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?

Two short sentences with no filler, and the most distinctive fact (newest first) is front-loaded after the resource. It is efficient, though the brevity comes at the cost of the missing limit and time-window detail rather than being a model of dense information packaging.

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

Completeness2/5

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

Four optional parameters, low schema coverage, and no output schema means the description must explain defaults and return shape. It leaves out the 25-row default and 100 cap, the day-granularity of since_days, and any indication of what fields an event record contains, so an agent cannot confidently predict result volume or filter behavior.

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 only 25%, with just user_id documented, so the description carries real weight here. It does map three of four parameters to concepts (event name, user, time window), but 'time window' is ambiguous against the actual since_days name and day-based semantics, and the limit parameter is never mentioned at all.

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?

States a specific resource (recent events) plus two defining traits: default ordering (newest first) and the filter dimensions (event name, user, time window). An agent can tell this is an event-stream query rather than a user-level or aggregation tool, though it never names a sibling such as get_user_activity or list_event_names to sharpen the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance and no named alternative. The reader must infer from 'recent events' that this is for browsing the raw event stream, and must guess whether get_user_activity or list_event_names is the better pick for a per-user or name-discovery task.

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.