Skip to main content
Glama

Watch a road

watch_road

Get a signed webhook POST whenever a road changes light (green, amber, red). Needs a key on LaneRouter Pro; up to 25 watches per key. Returns the watch id, used by unwatch_road, and a signing secret shown only once: verify each delivery’s LaneRouter-Signature header with it. Watching the same road with the same url twice is refused; use list_watches to see what you already 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": {
      "target": "<target>",
      "url": "<url>"
    },
    "name": "watch_road"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesYour public https webhook endpoint. It must answer 2xx within 8 seconds; failed deliveries are retried after 1, 5, 30 and 120 minutes.
actionNoShort verb, matching the one agents check and report with, e.g. checkout. Defaults to visit.
targetYesURL or host/path to watch, e.g. "shop.example/checkout".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / action / description
      Previous value: -"Optional short verb such as checkout, login, search."New value: +"Short verb, matching the one agents check and report with, e.g. checkout. Defaults to visit."
    • changedInput schema / properties / url / description
      Previous value: -"Your https webhook endpoint."New value: +"Your public https webhook endpoint. It must answer 2xx within 8 seconds; failed deliveries are retried after 1, 5, 30 and 120 minutes."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only mark this as a non-readonly, open-world, non-idempotent write; the description adds the real behavioral payload: key tier requirement, quota of 25 watches per key, a signing secret shown only once, the LaneRouter-Signature header verification requirement, and the duplicate-watch refusal (consistent with idempotentHint=false). Retry behavior is left to the url parameter description, which covers it.

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?

Front-loads what the tool does, then requirements, then return values and the duplicate constraint. Every clause carries information an agent needs; nothing is restated from the schema or annotations.

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?

With no output schema, the description carries the return contract itself and does so: watch id (with its consumer) and a one-time signing secret. Combined with quota, auth tier and duplicate rules, an agent has everything needed to call this correctly and handle the result.

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 explains target, url and action, including retry timing and the action default. The description only adds the target+url uniqueness rule; it says nothing about the `action` parameter or target format beyond what the schema states. Baseline 3 applies when the schema does the heavy lifting.

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 and resource: register a signed webhook POST that fires when a road's light changes. It also names the sibling tools involved (unwatch_road consumes the returned id, list_watches shows existing watches), so an agent can place it precisely in the sibling set.

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

Usage Guidelines4/5

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

Gives clear preconditions (needs a LaneRouter Pro key, max 25 watches per key) and routes to list_watches when the agent wants to see existing watches, plus a stated refusal condition for duplicates. It does not say when to prefer check_road or red_lights instead of setting up a watch, so it stops short of full when/when-not guidance.

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.