Skip to main content
Glama

List event blocks

list-event-blocks
Read-onlyIdempotent

List Event Block envelopes with optional filters.

WHEN TO USE:

  • To find events of a specific type (e.g., all invoice_issued events)

  • To review events by status (e.g., all captured events awaiting classification)

  • To see a counterparty's event history (filter by agent_id)

  • To audit events from a specific source (quickbooks, plaid, etc.)

  • Close workflow: find unposted bank and source lines (status=captured or classified). Committed events are already posted or are evidence, not work

  • Post-sync reconciliation: is_reconciling_item=true lists reconciling items — committed events whose upstream payload changed after posting, so the local GL no longer mirrors the source. Each awaits an explicit disposition: preview-reconciling-item shows the difference, resolve-reconciling-item carries out a restate / catch_up / acknowledge and clears the flag (until it does, the item re-flags on every sync). The stashed incoming payload is in the event's metadata.drift_payload (fetch via get-event-block or include_metadata=true)

PARAMETERS:

  • event_type (optional): e.g., 'invoice_issued', 'contract_signed', 'bank_transaction'

  • event_category (optional): 'sales' | 'purchase' | 'financing' | 'payroll' | 'treasury' | 'adjustment' | 'recognition' | 'other'

  • event_class (optional): 'economic' (business activity) | 'support' (evidence: a bank feed's daily balance readings, statement balances, reconciliation sign-offs) | 'operational' (schedule obligations). A balance_observed event's amount is the account's balance, not a flow, so pass event_class='economic' when listing activity on a bank feed

  • status (optional): 'captured' | 'classified' | 'committed' | 'pending' | 'fulfilled' | 'voided' | 'superseded'

  • agent_id (optional): Filter to a specific counterparty

  • source (optional): 'manual' | 'schedule' | 'system', a connected provider name, or a registered external source_name

  • is_reconciling_item (optional): true → only reconciling items (the reconciliation worklist); false → exclude them; omit for all

  • occurred_from / occurred_to (optional): YYYY-MM-DD, both inclusive. Give them whenever the question is about one period: one month's events, not the whole history

  • limit (optional, default 50, max 1000)

  • offset (optional, default 0)

  • entity_id (optional): the entity whose inbox to list; omit for the group parent

  • include_metadata (optional, default false): When false, returns a lean per-event summary (id, event_type, event_category, status, occurred_at, source, agent_id, amount, currency, description, has_discharge_link, is_reconciling_item), plus a waiting bank line's suggestion when it has one (suggested_account_name, suggestion_source, suggestion_basis). When true, includes the full event_block metadata blob — entries, qb_* fields, connection_id, etc. — same shape as get-event-block. Default is summary-only because bulk metadata across hundreds of events can exceed agent context (1000 events with full metadata ≈ 150 KB / 4600 lines). Fetch full metadata via get-event-block(id) for specific events.

RETURNS:

  • event_count: number of matching events in the page

  • mode: "summary" | "full"

  • events: list of event summaries (or full envelopes when include_metadata=true) ordered by occurred_at descending

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": "list-event-blocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
sourceNo
statusNo
agent_idNo
entity_idNoThe entity whose books this acts on, by id (get-graph-info lists them). Omit for the group parent.
event_typeNo
event_classNo
occurred_toNoLast day to include (YYYY-MM-DD).
occurred_fromNoFirst day to include (YYYY-MM-DD).
event_categoryNo
include_metadataNoReturn full event envelopes (including the per-event metadata blob) instead of the lean summary projection. Off by default to keep list calls compact.
is_reconciling_itemNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed-world profile, so the safety bar is covered structurally. The description still adds real value beyond them: default 50 / max 1000 paging, occurred_at descending order, the context-cost rationale for summary mode (≈150 KB for 1000 full-metadata events), and the fact that reconciling items re-flag on every sync until an explicit disposition. That is substantive behavioral context.

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?

Purpose and WHEN TO USE are front-loaded and the parameter list is scannable. It runs long for a list tool, and a chunk of the reconciliation paragraph narrates what preview-reconciling-item and resolve-reconciling-item do, which duplicates those tools' own definitions rather than this one's invocation guidance on is_reconciling_item.

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?

Despite 13 parameters and no output schema, the definition covers the return shape (event_count, mode, events ordering) and the metadata-vs-summary trade-off an agent must reason about. Nothing needed to call this correctly — or to avoid blowing context — is missing.

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 only 31%, so the description must carry the load, and it largely does: it enumerates event_class meanings and warns that a balance_observed amount is a balance not a flow, spells out status and category vocabularies, explains entity_id's group-parent default, and defines include_metadata's summary-vs-full projection down to the returned fields. Minor gap: limit/offset are restated but pagination advice (whether to page or narrow by date) is only implied.

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 and resource ("List Event Block envelopes") plus a scope qualifier ("with optional filters"), and the WHEN TO USE bullets show the distinct query patterns this tool serves versus get-event-block (single fetch) or the reconciling preview/resolve pair. An agent can identify it from the sibling names alone.

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?

Gives five concrete when-to-use scenarios (event type, status, counterparty history, source audit, close workflow, post-sync reconciliation) and explicitly routes to alternatives: get-event-block for full metadata on specific events, preview-reconciling-item to see a drift difference, resolve-reconciling-item to clear the flag. Exclusions are stated too (committed events are not close work).

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.