Skip to main content
Glama

Pokemon TCG Restock Alerts - bujusjujus

set_webhook

Register (or replace) the HTTPS endpoint we POST to the instant a matching restock happens — for a server-side AI bot that should not hold a connection open. One webhook per API key; calling again replaces the URL and filters and issues a NEW signing secret. Each POST is JSON { type:"alert", cursor, sentAt, alert } with header X-Bujus-Signature: t=,v1=<hex HMAC-SHA256 of "." keyed by the secret>; reject a signature that does not verify or whose t is more than 5 minutes old. Respond 2xx within 5 seconds; failures are retried 3 times, and 20 consecutive failed deliveries disable the webhook. The secret is returned once — store it.

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": {
      "url": "<url>"
    },
    "name": "set_webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic https:// URL on port 443.
kindNoDefault "restock" (buyable stock). "invite", "drawing" and "queue" are retailer events, not stock; "any" includes all.
queryNoCase-insensitive substring of the product name.
retailerNoOnly this retailer.
maxMarkupPctNoSkip rows priced more than this % over MSRP. Rows with no price or no MSRP are kept.
minConfidenceNoDefault "high".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / maxMarkupPct / description
      Previous value: -"Skip rows priced more than this % over MSRP."New value: +"Skip rows priced more than this % over MSRP. Rows with no price or no MSRP are kept."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With zero annotations, the description carries the full burden and does so: it discloses replacement semantics, that a NEW signing secret is issued on each call, that the secret is returned only once, the exact payload shape and signature header, the 5-minute replay window, the required 2xx-within-5s response, a 3-attempt retry policy, and the 20-consecutive-failure auto-disable rule. These are non-obvious operational traits an agent could not infer from the schema.

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?

Front-loaded with purpose and replacement semantics, and every sentence is substantive. It is dense and runs long for one paragraph, mixing invocation guidance with receiver-side implementation details (HMAC verification, retry/disable policy) that arguably belong in separate docs, which keeps it from a 5.

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 everything an agent needs: what it does, replacement behavior, that it yields a one-time secret (covering the return value despite no output schema), and the delivery contract. With 6 parameters all schema-documented and no annotations, nothing material is left unspecified.

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% (url, kind, query, retailer, maxMarkupPct, minConfidence all documented with enums and bounds), so the baseline is 3. The description adds real value beyond the schema by stating that a subsequent call replaces "the URL and filters" wholesale - a merge-vs-replace semantic that the per-field schema cannot express.

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/replace an HTTPS webhook endpoint) plus the exact trigger condition (matching restock) and the caller profile it suits (server-side bot without a held connection). This immediately separates it from get_webhook, remove_webhook, test_webhook and from the streaming wait_for_drop sibling.

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?

"For a server-side AI bot that should not hold a connection open" is an explicit use-case discriminator against the long-poll style sibling. It also warns that one webhook exists per API key and that calling again replaces the existing configuration, which is critical before invoking. It stops short of naming test_webhook/get_webhook as follow-up or verification steps, so it is clear context rather than a full when/when-not routing table.

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