Skip to main content
Glama

catch_up_events

Read-onlyIdempotent

Fetch paginated events after a given LSN to catch up from a snapshot or prior page, with hash-chain checks and fail-closed handling for pruned gaps or broken chains.

Instructions

Since-LSN catch-up page after a snapshot (or a prior page). Events have id greater than after_lsn, hash-chain checked from the predecessor. A pruned-gap cursor fails closed and names the snapshot path to refetch; a broken chain fails closed. Requires workspace:read.

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": "catch_up_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNopage size, 1 to 500, default 100
after_lsnNoexclusive cursor; 0 starts from the retained floor
workspace_idNodefaults to the caller's workspace

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world, but the description adds real behavioral context beyond them: hash-chain verification from the predecessor, fail-closed behavior on a pruned-gap cursor (with a pointer to the snapshot path to refetch) and on a broken chain, plus the workspace:read scope requirement. These are exactly the failure modes an agent needs to handle.

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?

Three dense sentences, front-loaded with the core paging semantics and followed by failure modes and auth. Every sentence carries information; the only cost is heavy jargon (LSN, hash-chain, pruned-gap) that assumes domain familiarity.

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?

For a three-parameter, read-only paging tool with no output schema, the definition covers cursor semantics, ordering guarantee, integrity checking, error behavior, and required scope. It does not describe what a returned page contains (event fields or how the next cursor is exposed), which is a minor gap given no output schema exists.

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 coverage is 100%, so limit, after_lsn, and workspace_id are already fully documented, including exclusivity and the 0-means-floor rule. The description restates the exclusive-after_lsn semantics but adds no syntax, range, or interaction detail beyond the schema, so the baseline 3 applies.

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 states a specific verb and resource: it returns a since-LSN catch-up page of events after a snapshot or prior page, with hash-chain verification from the predecessor. That is far more precise than a restatement of the name, but it never names or contrasts a sibling tool (e.g. the snapshot endpoint it tells callers to refetch from), so differentiation is left implicit.

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?

It clearly states the context of use: call after a snapshot, or repeatedly to continue from a prior page, passing the previous cursor. It does not state when not to use it or name an alternative, so it stops short of full when/when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools