Skip to main content
Glama

poll_memory_events

Poll memory events since a sequence number to see what changed in the store, returning event details and a new tip to pass back as the next since_seq.

Instructions

What changed in the store since since_seq, from the memory_events table the row writer appends to INSIDE its own transaction: {events: [...], tip: }. Each event is {seq, ts, type, memory_id, agent, tenant, payload}; the automatic ones (record.added, record.changed, record.removed) carry only id, key, status and mtype, never text, so tail them and fetch the record with get/recall where the grants apply. Another process's write is visible on the next call, no reload. Keep tip and pass it back as since_seq. event_type "*" (or empty) means every type. A JSON-format store (INSPEXIMUS_STORE_FORMAT=json, an encrypted store) has no event table, and the call is an error there rather than an empty feed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
agent_idNo
since_seqNo
event_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.1.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the full burden, and it delivers: it discloses the return shape, event field structure, payload limitations on automatic events, cross-process visibility, the cursor handshake, wildcard semantics, and a specific error condition for JSON-format stores. This is unusually transparent.

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 dense but well organized, with the core purpose front-loaded and every sentence contributing useful information. The second sentence is long and packed with caveats, but it earns its place; slightly more structure would make it a 5.

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?

There is no output schema, so the description compensates by specifying the return object and event fields, plus the error behavior on JSON stores. It covers the cursor protocol and event-type semantics well, but omitting explicit `limit` and `agent_id` semantics leaves a small completeness gap.

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 0%, so the description must compensate. It explains `since_seq` and `event_type` well, but `limit` and `agent_id` are left unexplained. `agent_id` can be loosely inferred from the event shape, but it is not explicitly defined, leaving a partial gap.

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 opens with a specific operation: poll what changed in the store since `since_seq` from the `memory_events` table, returning `{events, tip}`. It clearly distinguishes this from record-fetching tools like `get`/`recall` by framing it as an event-feed poll. The resource and verb are unambiguous.

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?

The description gives practical usage guidance: keep `tip` and pass it back as `since_seq`, use `event_type` "*" for all types, and tail automatic events by fetching records with `get`/`recall`. It does not explicitly compare against alternatives like `subscribe_memory_event`, but the usage context is clear enough to apply correctly.

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