Skip to main content
Glama

Edit a watch

update_watch
Idempotent

Change a watch's maximum price, minimum discount and/or accepted conditions, keeping its watch_id, feed URL, webhook and history. Send only what changes; null removes the price cap or the discount floor. Returns the watch as check_watch does, with live_matches under the new terms: alert only on unseen ids, and restart any cursor scan. A new product, scope, brand or attribute needs a new watch.

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

Input Schema

NameRequiredDescriptionDefault
watch_idYesThe watch_id returned by register_watch.
conditionsNoThe complete new set of accepted conditions; it replaces the old set.
max_price_centsNoNew price ceiling in cents (35000 = $350). null removes the ceiling.
min_discount_pctNoNew minimum discount percentage. null or 0 removes it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations, it discloses what is preserved (watch_id, feed URL, webhook, history) and the downstream effect on alerting (live_matches recomputed under new terms, alerts only on unseen ids, cursor scan restart). The cursor-restart clause is slightly telegraphic about whether that is automatic or caller-driven, but the mutation's blast radius is otherwise well conveyed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four tight sentences, front-loaded with the mutable fields, then update semantics, then return/alerting behavior, then the sibling boundary. No wasted words, though the alerting sentence is compressed to the point of being terse.

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?

Covers the mutable surface, the partial-update contract, what survives the edit, and the return value by reference to check_watch; no output schema exists, and the description compensates by naming the return shape. For a four-parameter mutation tool with annotations, nothing an agent needs to call 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 the schema already documents each parameter including null-removal. The description's main addition is partial-update framing ("Send only what changes"), which is real semantic value beyond the schema, but it adds no format or unit details that the schema lacks.

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 plus resource ("Change a watch") and enumerates exactly which fields are mutable: maximum price, minimum discount, accepted conditions. It also separates itself from the sibling that creates watches by noting that a new product, scope, brand or attribute requires register_watch instead.

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 an explicit when-not with the alternative named: new product/scope/brand/attribute needs a new watch rather than an edit. It also tells the caller how to use it ("Send only what changes") and what null means, so the invocation pattern is fully specified.

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.

Resources