Skip to main content
Glama

Apumail — Email & SMS for AI Agents

register_webhook

Subscribe a URL to receive a POST every time mail lands at your inbox. Replaces polling with push. Body: {event:'mail.received', inbox, mail, ts}. Headers: X-Apumail-Signature: sha256= (HMAC over body with the returned secret). Up to 5 webhooks per inbox. Server retries 3x with backoff on 5xx/network errors; disables after 10 consecutive failures.

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

Input Schema

NameRequiredDescriptionDefault
urlYeshttps:// URL that will receive POSTs.
tokenYesYour inbox token.
addressYesYour inbox address.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and largely does: it discloses the exact POST body shape, the X-Apumail-Signature HMAC verification header, the per-inbox quota, retry policy (3x with backoff on 5xx/network), and auto-disable after 10 consecutive failures. These are precisely the operational traits an agent cannot 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.

Conciseness5/5

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

Front-loaded purpose sentence followed by compact labeled fragments (Body, Headers, quota, retry policy) with zero filler. Terse shorthand is used deliberately and every clause conveys operational information.

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 registration tool with no output schema and no annotations, the description covers side effects, signing, limits, and failure behavior well. The one gap is the response: it references 'the returned secret' without saying what the registration call returns (webhook id, secret, timestamps), which an agent may need for subsequent delete_webhook calls.

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 100%, so baseline is 3; the schema already describes address, token, and url. The description adds marginal meaning about what the URL receives and that the token/address identify the inbox, but no format or validation detail beyond the schema.

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 — subscribe a URL to POSTs when mail arrives — plus the framing 'Replaces polling with push,' which tells an agent this is the event-driven counterpart to the wait_for_mail/list_webhooks family. Purpose is unmistakable without opening the schema.

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?

The 'replaces polling with push' line gives clear usage context (prefer this over polling), and the 5-per-inbox cap tells the agent when the call will fail. It does not explicitly name alternatives such as list_webhooks (to check existing subscriptions) or delete_webhook (to free a slot), so guidance is clear but not exhaustive.

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