Skip to main content
Glama

Get deal events by webhook

mm_set_webhook

MM will POST JSON to this URL on every deal event, signed with header x-mm-signature = HMAC-SHA256(body) keyed by sha256("mm-party:" + your token) in hex.

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": {
      "deal_id": "<deal_id>",
      "token": "<token>",
      "url": "<url>"
    },
    "name": "mm_set_webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
tokenYesYour private deal token (from mm_create_deal or mm_join_deal, or your own deal link ?k=...)
deal_idYesDeal ID, like D-7KQ2M9AB

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / token / description
      Previous value: -"Your private deal token (from mm_create_deal or your deal link ?k=...)"New value: +"Your private deal token (from mm_create_deal or mm_join_deal, or your own deal link ?k=...)"
  2. First observed

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose substantive behavior: JSON payloads, delivery on every deal event, and the exact signature header and HMAC key derivation. It omits lifecycle details such as whether the URL overwrites a prior webhook, retry/failure behavior, and HTTPS requirements, which keeps it from a 5.

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?

A single dense sentence with no filler; the event/POST behavior is front-loaded and the signature formula follows. It could be improved by leading with a plain 'registers a webhook' clause, but nothing is wasted.

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

Completeness3/5

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

For a simple three-parameter mutation with no annotations or output schema, the core delivery and security behavior is covered. Missing are the operational edges an agent needs: overwrite semantics, whether multiple webhooks are allowed, response contents, and URL validation rules.

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 coverage is 67%, and the description adds real meaning for `url` (the POST target) and `token` (used to derive the HMAC signing key), which goes beyond the schema's terse token note. However, `deal_id` gets no added semantics and URL format constraints are unstated, so it is only modestly above the baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description makes clear that the tool registers a callback URL that receives JSON POSTs on every deal event, which is a specific resource and effect. The verb is implicit ('MM will POST to this URL') rather than an explicit 'set/register', and the title ('Get deal events by webhook') is slightly at odds with a setter, but the body resolves the ambiguity.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus alternatives such as polling mm_get_deal, no prerequisites beyond the token reference, and no statement about whether this replaces an existing webhook or can be cleared. The agent must infer the intended workflow entirely.

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