Skip to main content
Glama
x402 Discovery & Trust MCP

x402 Discovery & Trust MCP

x402 Trust watch: edit delivery URLs, sensitivity or events

x402_watch_edit

Update a watch's webhook URLs, sensitivity, or subscribed events; new URLs are tested first, and failed tests leave the existing configuration unchanged.

Instructions

Change a watch's webhook URLs, sensitivity or subscribed events. New URLs are tested first; failures leave the old config untouched.

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

Input Schema

NameRequiredDescriptionDefault
eventsNoEvent types to subscribe to (default all). Omit to keep current events.
secretYesThe one-time bearer secret returned by x402_watch_create.
watch_idYesWatch id returned by x402_watch_create.
slack_urlNoReplace Slack/Discord URL(s). Single string or array; max 5. Omit to keep current URL(s).
webhook_urlNoReplace webhook URL(s). Single string or array; max 5. Omit to keep current webhook(s).
liveness_sensitivity_nNo1=paranoid … 10=relaxed. Omit to keep current value.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.17.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / slack_url / $ref
      Removed value: -"#/properties/webhook_url"
    • addedInput schema / properties / slack_url / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  }
      +]
  2. Addedv1.5.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose a genuinely useful trait: new URLs are validated before commit and failures leave the old config intact, i.e. atomic semantics. It stops short of clarifying partial-update behavior for events (replace vs merge) or the secret/auth requirement, though the schema covering omission semantics softens that gap.

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 tight sentences, front-loaded with the action and scope, followed immediately by the most decision-relevant behavior (test-then-commit). No filler or redundancy.

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 mutation tool with no annotations and no output schema, the description supplies the key safety behavior and field scope. It could go further on auth (one-time secret) and whether the call returns the updated watch config, but nothing essential to invoking it correctly is missing.

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%, so all six parameters including omit-to-keep semantics and the 1-10 sensitivity scale are already documented. The description adds no additional parameter meaning beyond enumerating which fields can change, so the baseline of 3 applies.

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 (change/edit) and resource (watch) plus the exact mutable fields (webhook URLs, sensitivity, subscribed events). An agent can distinguish this from x402_watch_create, x402_watch_cancel, and x402_watch_renew purely from the description.

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?

The description conveys that this edits an existing watch, implying it should be used after creation, and the test-first behavior hints at safe experimentation. However it offers no explicit when-to-use versus siblings or any stated preconditions such as requiring a watch_id from x402_watch_create.

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