Skip to main content
Glama
CodeAbra

iai-mcp

events_query

Read-onlyIdempotent

Query whitelisted event kinds with optional filters for time, severity, and maximum count.

Instructions

Query user-visible events (kind whitelist). Read-only. Optional since (ISO-8601), severity, limit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYesEvent kind. Must be in the whitelist (s4_contradiction, trajectory_metric, ...).
sinceNoISO-8601 timestamp; only events at or after this are returned. Omit to return events from the start of the log.
severityNoOptional severity filter. Omit to return all severities.
limitNoMaximum events returned (default 100, capped at 1000 by the daemon regardless of the value supplied).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventsNo
countNo
Behavior4/5

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

The description adds 'Read-only' (matching annotations) and mentions 'kind whitelist', which is behavioral context beyond annotations. Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, so the safety profile is clear. The description enriches with the whitelist constraint and optional parameter hints. A score of 5 would require additional traits like auth requirements or rate limits.

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 description is extremely concise: one sentence and a fragment. It front-loads the purpose and immediately states read-only nature and optional params. Every word earns its place. A score of 5 would require a slightly more structured presentation (e.g., bullet points) but this is efficient.

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?

Given 4 parameters and an output schema, the description is minimal. It doesn't explain 'user-visible' or the whitelist mechanism, nor the return behavior. However, the output schema likely covers return fields. Annotations provide safety context. The description is adequate but could be more complete by clarifying the scope of events and expected output format.

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 the schema already documents all parameters with types, defaults, enums, and descriptions. The tool description only lists optional parameters ('since', 'severity', 'limit') and mentions 'kind whitelist' in the purpose, adding minimal meaning beyond the schema. Baseline 3 is appropriate.

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 clearly states the tool queries 'user-visible events' with a kind whitelist, specifying the resource and constraint. The verb 'query' is appropriate, and the tool is distinct from unrelated sibling tools (memory, profile, etc.). A score of 5 would require explicit differentiation from similar siblings, which aren't present.

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

Usage Guidelines3/5

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

No explicit guidance on when to use this tool versus alternatives. However, sibling tools are all in different domains (memory, profile, schema), so there is no obvious alternative for querying events. The description implicitly covers usage by stating the resource and filters, but lacks when-not-to-use or alternative references.

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/CodeAbra/iai-mcp'

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