Skip to main content
Glama
x402 Discovery & Trust MCP

x402 Discovery & Trust MCP

x402 Trust watch: poll event log

x402_watch_events

Poll a watch's event log with its watch_id and one-time secret, paging by returned cursors so no endpoint or lifecycle events between polls are lost.

Instructions

Poll a watch's event log with watch_id and secret, paging by the returned cursors. Nothing between polls is lost.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "watch_id": "<watch_id>",
      "secret": "<secret>"
    },
    "name": "x402_watch_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
sinceNoEndpoint-event cursor: the `next_cursor` from a previous poll. Omit for the first poll.
secretYesThe one-time bearer secret returned by x402_watch_create.
watch_idYesWatch id returned by x402_watch_create.
watch_sinceNoLifecycle-event cursor: the `watch_events_cursor` from a previous poll. Omit for the first poll.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.17.1
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed2 schema fields changed
    • changedInput schema / properties / since / description
      Previous value: -"Cursor: the highest event_id from a previous poll. Omit for the first poll."New value: +"Endpoint-event cursor: the `next_cursor` from a previous poll. Omit for the first poll."
    • addedInput schema / properties / watch_since
      Added value: +{
      +  "description": "Lifecycle-event cursor: the `watch_events_cursor` from a previous poll. Omit for the first poll.",
      +  "type": "string"
      +}
  3. Addedv1.4.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description carries the burden. It usefully discloses two behaviors an agent could not otherwise infer: cursor-based paging via returned cursors and the durability guarantee 'Nothing between polls is lost'. It does not state that polling is read-only/non-destructive, whether secrets can be reused across polls, rate limits, or whether the response is incremental-only.

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?

Two sentences, no filler, with the core action and the paging mechanism front-loaded. Every clause adds information the agent needs to call the tool correctly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is a simple read-only poll with fully documented parameters, and the description covers paging and durability. But with no output schema and no annotations, the agent gets no picture of what an event looks like, how many events per page, or what an empty/expired-watch response means.

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 100%, and each parameter already documents its origin (watch_id from x402_watch_create, next_cursor / watch_events_cursor from a prior poll). The description only reiterates the cursor-paging concept, adding no syntax or format detail beyond the schema, so the baseline of 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?

States a specific verb and resource: 'Poll a watch's event log', with the two required credentials named. It is clearly distinguishable from the sibling mutation tools (x402_watch_create/edit/cancel), but it does not explicitly name any sibling or contrast its role with read tools like x402_endpoint_history.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'paging by the returned cursors' tells the agent how to iterate, and 'Omit for the first poll' in the schema covers the starting condition. However, there is no explicit guidance on when to use this versus x402_endpoint_history or the other trust tools, and no cadence or when-to-stop advice.

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