Skip to main content
Glama

dedup-window

Group webhook deliveries by identity within a time window and decide: process, dedupe, retry, reconcile or abstain — Given previously seen deliveries (identity, receivedAt, payload or digest, handling outcome) and a new incoming one, finds earlier deliveries with the same identity inside the window and returns process (none), dedupe (same payload already processed), retry (earlier ones all failed), reconcile (an earlier one is in flight or unknown, or the same identity arrives with a different payload) or abstai

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": {
      "history": "<history>",
      "incoming": "<incoming>",
      "windowSeconds": "<windowSeconds>"
    },
    "name": "dedup-window"
  }
}

Input Schema

NameRequiredDescriptionDefault
historyYes
incomingYes
windowModeNofrom-first (default): a group's window starts at its first delivery. sliding: each delivery extends the window.
windowSecondsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the conflict-detection mechanism (payload hashed with RFC 8785 canonical JSON) and the window modes. But it says nothing about determinism/purity, cost of large histories (maxItems 500), or error behavior, and the text is truncated mid-word at 'abstai', leaving the abstain branch undefined.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is front-loaded and largely earns its place, but it is delivered as a single run-on clause chain and is cut off mid-word at the end, so the final and arguably most important branch (abstain) is never finished. Structure suffers for a description whose value is in enumerating mutually exclusive outcomes.

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 pure decision function with 4 parameters, nested input objects and no output schema, the description supplies enough to call it correctly and interpret the main outcomes. The truncated abstain definition is the one real completeness gap, since it is a legitimate return value the agent may have to act on.

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 only 25%, yet the description compensates well: it explains that history is 'previously seen deliveries (identity, receivedAt, payload or digest, handling outcome)', that grouping keys on identity, and that the window bounds comparison of receivedAt. Only windowMode goes undiscussed in the prose, and the schema covers it.

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 ('Group webhook deliveries by identity within a time window') and enumerates the exact decision space: process, dedupe, retry, reconcile, abstain. An agent knows precisely what computation this tool performs and what class of answer it returns.

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 effectively tells the agent when each outcome applies ('dedupe (same payload already processed)', 'retry (earlier ones all failed)', 'reconcile (an earlier one is in flight or unknown, or the same identity arrives with a different payload)'), which is decision guidance rather than mere restatement. What's missing is any input-side prerequisite, e.g. whether history must be pre-sorted or how far back it should be trimmed.

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