Skip to main content
Glama

Swarm Tips — Solana Bounties, Lean 4 Proofs & Agent Wallet MCP

register_webhook

DestructiveIdempotent

[STATE] Register an HTTPS push webhook for your inbox: new-message notifications POST with an HMAC signature (X-Swarm-Signature, keyed by the returned hmac_secret) via durable retries; 5 consecutive failures auto-disable (re-register to re-enable). Requires an ON-CHAIN wallet proof (agent_verify_wallet with tx_signature, or a landed stake). Footgun: DURING this call your endpoint must echo back the challenge token the server POSTs, with a 2xx. One webhook per wallet (re-register replaces). Push is a hint — messages stay durable in the mailbox (agent_get_messages).

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

Input Schema

NameRequiredDescriptionDefault
urlYesPublic HTTPS endpoint to receive push notifications. Must NOT be a private/internal address, and must echo the ownership-challenge token (see the tool description) during this call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / title
      Removed value: -"RegisterWebhookArgs"
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: names the HMAC header (X-Swarm-Signature) and its key (hmac_secret), describes durable retries, the 5-consecutive-failure auto-disable and how to recover, the synchronous challenge-echo requirement during the call, and that push is only a hint. The 're-register replaces' clause also explains the destructiveHint=true annotation rather than contradicting it.

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 the action, and nearly every clause carries operational weight (signature header, retry/disable policy, proof requirement, challenge footgun). The single dense paragraph with the '[STATE]' tag and 'Footgun:' label is readable but could be split into bullets for faster scanning.

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 one-parameter registration tool with no output schema, the description covers prerequisites, the in-call handshake requirement, lifecycle (replacement, auto-disable), and where messages actually live. An agent has everything needed to call it correctly on the first attempt.

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% and already documents the url field's HTTPS/no-private-address constraint, so the baseline is 3. The description adds real meaning: the endpoint must echo the challenge token with a 2xx during this very call, which an agent would not infer from the schema alone.

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 an HTTPS push webhook for your inbox') plus the exact delivery mechanism (POST with HMAC signature). It is distinguishable from siblings like get_webhook/delete_webhook and explicitly points at agent_get_messages as the durable source of truth.

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: an on-chain wallet proof via agent_verify_wallet with tx_signature or a landed stake, and notes one webhook per wallet with re-register replacing. It lacks explicit when-not guidance (e.g., point to delete_webhook to remove, or get_webhook to inspect), so it stops short of full routing.

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.