Skip to main content
Glama

Cancel a Token Watch

cancel_watch
DestructiveIdempotent

Use to stop one Watch + Alert watch that was started with your RugRadar credit key; pass its watch_id (from watch_token or list_watches) and the same key (api_key or header X-RugRadar-Key). Alerts stop right away and the watch cannot be restarted. No refund: credits spent on the watch are not returned, even if hours remain. Free to call. Cancelling an already cancelled or expired watch returns its current status and changes nothing. A watch started with a different key, or paid per-call with x402, returns not_found.

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>"
    },
    "name": "cancel_watch"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_keyNoRugRadar credit key that started the watch (or header X-RugRadar-Key)
watch_idYesWatch id (w_...) from watch_token or list_watches

Output Schema

NameRequiredDescriptionDefault
errorNopayment_required, bad_input, or a failure code
tokenNo
statusNo
messageNo
payWithNox402 payment requirement for the HTTP route, plus credit-key instructions when those apply
watchIdNo
priceUsdNoUSDC price to pay when error is payment_required
refundedNotrue when a credit was taken and then returned because the call failed
expiresAtNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructive=true and idempotent=true, but the description adds the operational consequences an agent actually needs: alerts stop immediately, the watch cannot be restarted, and credits are not refunded even with time remaining. It also spells out the idempotent semantics (returns current status, changes nothing) and the exact failure mode (not_found) for wrong-key or x402 watches.

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?

Everything is front-loaded into the opening clause 'Use to stop...', and the subsequent sentences each carry a distinct contract term: key requirement, alert cessation, no refund, free, idempotency, and the not_found case. No sentence restates the tool name or the annotations without adding detail.

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

Completeness5/5

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

For a two-parameter destructive mutation with a full output schema, the description covers the prerequisites, cost model, irreversibility, refund policy, and both success and failure semantics. Nothing an agent must know before calling is missing, and return-value shape is correctly left to the output schema.

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; the description earns an extra point by constraining api_key to 'the same key' that started the watch and by noting the alternate X-RugRadar-Key header form. It also states provenance for watch_id (w_... from watch_token or list_watches), which the schema's description references only loosely.

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 verb and resource: 'stop one Watch + Alert watch'. It scopes the operation to watches created with the caller's RugRadar credit key, which cleanly separates it from creation (watch_token) and enumeration (list_watches), the two siblings it names as id sources.

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?

It tells the agent exactly what to pass and where to get it ('watch_id (from watch_token or list_watches)') plus the prerequisite that the same credit key must be used. Edge cases are pre-empted: re-cancelling or cancelling an expired watch is harmless, a watch owned by another key or paid via x402 returns not_found, and the call is free.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.