Skip to main content
Glama
x402 Discovery & Trust MCP

x402 Discovery & Trust MCP

x402 Trust watch: cancel early

x402_watch_cancel

Stops an active watch by ID and one-time bearer secret, ending monitoring while keeping its log readable until expiry.

Instructions

Stop a watch now; its log stays readable until expiry. Idempotent.

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_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
secretYesThe one-time bearer secret returned by x402_watch_create.
watch_idYesWatch id returned by x402_watch_create.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.17.1
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Addedv1.5.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full load, and it does disclose two important traits: the operation is idempotent, and the watch's log remains readable until expiry after cancellation. It stops short of saying whether cancellation is reversible or what effect it has on already-collected events at the moment of cancelling.

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 short clauses, front-loaded with the action and its most consequential side effect. The terse "Idempotent." fragment is justified because retry safety materially changes how an agent calls a mutation.

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 two-parameter mutation with no output schema, the definition covers the action, idempotency, and the post-cancellation state of the log. The main remaining gap is that no output schema exists and the description never hints at what the call returns on success or on an already-cancelled watch.

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 both parameters (watch_id, secret) are documented in the schema, including the critical note that secret is a one-time bearer secret from x402_watch_create. The description adds nothing beyond that, 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?

States a specific verb and resource: "Stop a watch now", with "now" marking it as early termination rather than natural expiry. An agent can distinguish this from x402_watch_renew or x402_watch_edit by the verb, though the description never names those siblings explicitly.

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?

Usage is implied by "Stop a watch now" and the note that the log survives until expiry, which suggests cancelling ahead of expiry is the intended scenario. There is no explicit when-not guidance, no stated prerequisites (e.g. the secret must be the one from create), and no pointer to alternatives such as edit or renew.

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