Skip to main content
Glama

bus_sync

Read-onlyIdempotent

Catch up an offline agent by returning every provenance event after a given sequence number so it replays exactly what it missed; store the returned headSeq for the next sync.

Instructions

Catch-up sync for an agent that was offline: returns every provenance event after the given sequence number, so the agent replays exactly what it missed. Store the returned headSeq and pass it as sinceSeq next time. For human-style reading of recent activity, bus_events is the simpler view of the same log.

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

Input Schema

NameRequiredDescriptionDefault
agentNoOptional: your agent name. On a bus that enforces agent tokens, pass it with token to include your own direct messages; without proof only broadcasts are visible.
limitNoMaximum number of events to return in one call.
tokenNoOptional: your agent token (see agent).
sinceSeqNoReturn events with a sequence number greater than this. 0 replays from the beginning.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.6.0
    • addedInput schema / properties / agent
      Added value: +{
      +  "description": "Optional: your agent name. On a bus that enforces agent tokens, pass it with token to include your own direct messages; without proof only broadcasts are visible.",
      +  "type": "string"
      +}
    • addedInput schema / properties / token
      Added value: +{
      +  "description": "Optional: your agent token (see agent).",
      +  "type": "string"
      +}
  2. Changed2 schema fields changedv0.5.12
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of events to return in one call."
    • addedInput schema / properties / sinceSeq / description
      Added value: +"Return events with a sequence number greater than this. 0 replays from the beginning."
  3. First observedv0.5.11

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so the description only needs to add process context — and it does, by describing the replay semantics and the headSeq/sinceSeq cursor contract. It stops short of covering the limit=500 truncation behavior or what an individual event looks like.

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?

Three front-loaded sentences with no waste: purpose and scope first, then the cursor workflow, then the sibling routing. The minor restatement of 'exactly what it missed' reinforces the replay guarantee rather than padding.

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?

With no output schema, the description carries the return-value burden and does name headSeq, but it doesn't say what the events contain or how limit truncation interacts with the cursor — the one thing an agent needs to page correctly.

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 baseline is 3, but the description adds real meaning beyond the schema: it explains that the returned headSeq should be fed back as sinceSeq, which the sinceSeq schema text ('return events with a sequence number greater than this') does not convey on its own.

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 ('catch-up sync ... returns every provenance event after the given sequence number') and frames the exact scenario ('agent that was offline'), which separates it cleanly from bus_events as the human-facing view.

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 both the selecting condition (agent was offline and needs to replay missed events) and names the alternative (bus_events) with the condition that picks it (human-style reading of recent activity). No inference required.

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