Skip to main content
Glama

Events awaiting review

get_unreviewed_events
Read-only

Lists classified events the rules engine could not confidently categorise (needs_review = true, not yet synced to the ledger), newest first. The pipeline is PAUSED for each of these until someone approves a category — they are missing from P&L reports and the ledger. Every item carries what an approver needs to decide without further queries: the source system, event type, amount in cents, currency, direction (inbound = money in, outbound = money out), when it occurred, the counterparty, the category the classifier suggested, and flagged_reason explaining why it was flagged. Resolve an item by calling approve_classification with its classified_event_id and the correct category. Paginate via next_cursor; total_count is the full queue size.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoEvents per page, default 20, max 100.
cursorNoThe next_cursor value from the previous page (last seen event id).
org_idNoOptional. Defaults to the organisation the authenticated API key is bound to, so you normally omit it and never need to ask the user for their organisation UUID. If provided, it must match the key’s org or the request is rejected.0e91146d-511c-469f-bdee-5c867b26ae0d

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventsYes
next_cursorYes
total_countYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true, and the description adds substantial behavioral context beyond that: the events are not yet synced to the ledger, the pipeline is paused for them, and they are excluded from P&L reports until approved. It also reveals what fields each item carries so the agent knows this is a zero-further-query consumption pattern. No contradiction with 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?

The description is dense but every sentence earns its place: definition, business impact, payload contents, resolution path, and pagination. It is front-loaded with the core purpose and maintains high signal-to-noise throughout with no filler.

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?

Combined with the 100%-covered input schema, an output schema, and the read-only annotation, the description leaves nothing essential missing. An agent knows what the tool returns, why it matters, how to paginate, and what sibling tool to call next.

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 schema already documents all three parameters. The description adds real value by explaining how cursor relates to next_cursor for pagination, how limit and total_count interact, and how org_id defaults to the authenticated API key's organisation, which goes beyond the schema's basic descriptions.

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 states a specific verb and resource: it lists classified events that the rules engine could not confidently categorise, with needs_review = true and not yet synced to the ledger, ordered newest first. It clearly distinguishes this from generic list tools by tying it to the review/approval workflow and naming the exact condition that defines the set.

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 explains when this queue matters: the pipeline is paused for each event, and they are missing from P&L reports and the ledger. It also gives the explicit next action by directing agents to approve_classification with classified_event_id and the correct category, and explains pagination via next_cursor.

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