Skip to main content
Glama

FMF Proof

Webhook Delivery Dedupe

delivery_dedupe

Apply each webhook once. Steps: received, begin, applied. "begin" grants one worker a lease; a repeat while it runs or after "applied" comes back should_apply:false; a lease that expires without "applied" can be taken over. Acknowledged and applied are kept apart. Your namespace is opened by a secret key you choose; ids expire after 7 days by default.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "delivery_dedupe"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepNoreceived, begin or applied.
lease_sNoHow long "begin" holds the delivery for one worker (5 to 3600, default 60).
ttl_daysNoHow long the id is remembered (1 to 30, default 7).
delivery_idNoThe sender's delivery id (the one it repeats on a retry).
namespace_keyNoYour secret namespace key (32 to 200 characters). Choose it once and keep it; it opens your ledger.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/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 substantial work: it discloses lease takeover behavior, the should_apply:false outcome, that acknowledged and applied are tracked separately, secret-key namespace ownership, and 7-day default id expiry. It is silent on failure modes, concurrency edge cases beyond lease expiry, and what a caller should do if the namespace key is wrong.

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?

Two sentences, front-loaded with the core guarantee and then the step machine; nearly every clause conveys state-transition behavior. The prose is dense with quoted step names, which makes it slightly harder to scan than a bulleted state list but wastes little.

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

Completeness4/5

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

For a 5-parameter stateful tool with no output schema and no annotations, the definition covers the lifecycle, lease semantics, id retention, and the one meaningful return flag should_apply. Remaining gaps are the full response shape and error behavior on invalid namespace keys or out-of-range lease values.

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 already 100%, so the baseline is 3, but the description adds real meaning beyond it: lease expiration enables takeover, "applied" is distinct from acknowledged, and the namespace key is user-chosen and must be kept. It does not clarify ranges or the relationship between ttl_days and delivery_id scope, which the schema already bounds.

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 opens with a specific verb and goal, "Apply each webhook once," and enumerates the three-step lifecycle, so an agent knows this is an idempotent webhook dedupe ledger rather than a generic check. It never names a sibling such as idempotency_check, so it stops short of explicit differentiation.

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?

It clearly explains when each step applies: "begin" grants a lease, a repeat during the lease or after "applied" returns should_apply:false, and an expired lease can be taken over. That is strong in-tool sequencing guidance, though there is no statement of when to prefer this tool over an alternative or when not to use it.

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