Skip to main content
Glama
Lettr MCP Server

Lettr MCP Server

Official
by lettr-com

Create Webhook

create-webhook

Create a webhook subscription to deliver selected Lettr events—or all events—to an HTTPS endpoint with none, basic, or OAuth2 authentication.

Instructions

Create a new webhook subscription.

Required: name, url, auth_type, events_mode.

  • When auth_type is "basic", auth_username and auth_password are required.

  • When auth_type is "oauth2", oauth_client_id, oauth_client_secret and oauth_token_url are required.

  • When events_mode is "selected", the events array is required and must contain only valid event type strings.

  • When events_mode is "all", the webhook receives every event.

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": {
      "name": "<name>",
      "url": "<url>",
      "auth_type": "<auth_type>",
      "events_mode": "<events_mode>"
    },
    "name": "create-webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesHTTPS URL that will receive webhook POSTs
nameYesHuman-readable name (max 255 chars)
eventsNoList of event types (required when events_mode=selected). Use the canonical fully-prefixed names (e.g. "message.delivery", "engagement.open").
auth_typeYesAuthentication scheme for delivery requests
events_modeYesSubscribe to all events or an explicit subset
auth_passwordNoBasic auth password (required when auth_type=basic)
auth_usernameNoBasic auth username (required when auth_type=basic)
oauth_client_idNoOAuth2 client ID (required when auth_type=oauth2)
oauth_token_urlNoOAuth2 token URL (required when auth_type=oauth2)
oauth_client_secretNoOAuth2 client secret (required when auth_type=oauth2)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden for a write operation. It states one behavioral fact — that events_mode='all' subscribes the endpoint to every event — but says nothing about side effects, duplicate-URL handling, whether a signing secret is generated, or whether creation is idempotent or reversible.

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?

The definition is front-loaded with the core action, then uses a tight bulleted list for conditional requirements. Some bullets repeat the schema's own 'required when' descriptions, but the formatting is scannable and there is no filler prose.

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 10-parameter mutation tool without annotations or an output schema, the definition covers the required fields and auth/event branches adequately. It omits what the caller gets back (e.g., webhook ID or signing secret), any auth/permission requirements, and error or validation behavior, which leaves meaningful gaps.

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 description coverage is 100%, so the schema already documents the conditional requirements for auth_type and events_mode, and the description largely restates them. It adds only marginal meaning, such as the reminder that events must be canonical fully-prefixed strings and what 'all' means for delivery.

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 resource: 'Create a new webhook subscription.' That cleanly separates it from the delete/get/update-webhook siblings. It does not explicitly name those siblings or contrast behavior, so it stops short of a 5.

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 create a webhook versus using an existing one, no prerequisites (e.g., URL must be HTTPS and reachable, endpoint should be verified before subscribing), and no mention of alternatives. The conditional requirements listed are parameter constraints, not usage guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.