Skip to main content
Glama

Cooper Email

Update webhook

cooper_update_webhook
DestructiveIdempotent

Use this when a webhook URL, event list, inbox filter, or enabled flag should change. Requires auth. Inputs: webhook_id (required), url (optional http(s) URL), events (optional array), enabled (optional boolean; true re-enables and resets consecutive_failures, false disables and stops deliveries), inbox_ids (optional; at most 10 inbox ids). Returns the webhook with the secret redacted. A disabled hook receives no deliveries. Fails with 404 webhook_not_found, 400 too_many_inboxes, 400 invalid_url, or 404 inbox_not_found.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoReplacement http(s) URL
eventsNoReplacement event list. At least one of message.received, message.held, message.sent, message.blocked, message.bounced, message.complained, task.received, owner.reply, domain.verified, draft.created, draft.approved, draft.rejected, draft.sent.
enabledNotrue re-enables the hook and resets consecutive_failures to 0. false disables it.
inbox_idsNoReplacement inbox filter, at most 10 ids. An empty array matches every inbox. More than 10 returns 400 too_many_inboxes.
webhook_idYesWebhook id (wh_…)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / events / description
      Previous value: -"Replacement event list. At least one of message.received, message.held, message.sent, message.blocked, message.bounced, message.complained, task.received, owner.reply, domain.verified."New value: +"Replacement event list. At least one of message.received, message.held, message.sent, message.blocked, message.bounced, message.complained, task.received, owner.reply, domain.verified, draft.created, draft.approved, draft.rejected, draft.sent."
    • changedInput schema / properties / events / items / enum
      Previous value: -[
      -  "message.received",
      -  "message.held",
      -  "message.sent",
      -  "message.blocked",
      -  "message.bounced",
      -  "message.complained",
      -  "task.received",
      -  "owner.reply",
      -  "domain.verified"
      -]New value: +[
      +  "message.received",
      +  "message.held",
      +  "message.sent",
      +  "message.blocked",
      +  "message.bounced",
      +  "message.complained",
      +  "task.received",
      +  "owner.reply",
      +  "domain.verified",
      +  "draft.created",
      +  "draft.approved",
      +  "draft.rejected",
      +  "draft.sent"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / events / description
      Previous value: -"Replacement event list. At least one of message.received, message.sent, message.blocked, message.bounced, message.complained, task.received, owner.reply, domain.verified."New value: +"Replacement event list. At least one of message.received, message.held, message.sent, message.blocked, message.bounced, message.complained, task.received, owner.reply, domain.verified."
    • changedInput schema / properties / events / items / enum
      Previous value: -[
      -  "message.received",
      -  "message.sent",
      -  "message.blocked",
      -  "message.bounced",
      -  "message.complained",
      -  "task.received",
      -  "owner.reply",
      -  "domain.verified"
      -]New value: +[
      +  "message.received",
      +  "message.held",
      +  "message.sent",
      +  "message.blocked",
      +  "message.bounced",
      +  "message.complained",
      +  "task.received",
      +  "owner.reply",
      +  "domain.verified"
      +]
  3. Changed2 schema fields changed
    • changedInput schema / properties / events / description
      Previous value: -"Replacement event list. At least one of message.received, message.sent, message.blocked, task.received, owner.reply, domain.verified."New value: +"Replacement event list. At least one of message.received, message.sent, message.blocked, message.bounced, message.complained, task.received, owner.reply, domain.verified."
    • changedInput schema / properties / events / items / enum
      Previous value: -[
      -  "message.received",
      -  "message.sent",
      -  "message.blocked",
      -  "task.received",
      -  "owner.reply",
      -  "domain.verified"
      -]New value: +[
      +  "message.received",
      +  "message.sent",
      +  "message.blocked",
      +  "message.bounced",
      +  "message.complained",
      +  "task.received",
      +  "owner.reply",
      +  "domain.verified"
      +]
  4. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations cover the safety profile (destructive, idempotent, openWorld), and the description still adds substantial behavior: auth is required, enabled=true resets consecutive_failures while enabled=false halts deliveries, the returned webhook is secret-redacted, and four specific failure codes are listed. It is consistent with the destructive/idempotent annotations rather than contradicting them.

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 usage trigger is front-loaded, and the remaining content is dense but all informational — constraints, return shape, and error codes. It reads as a long single block rather than cleanly separated lines, but no sentence is filler, so it stays well above the padding threshold.

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

Completeness5/5

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

For a mutation tool with no output schema, the description covers everything an agent needs: required vs optional inputs, auth requirement, the semantic effect of each toggle, the redacted return, and the enumerable failure modes. Nothing material is left to be discovered from an error at call time.

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 baseline is 3; the description's parameter notes (enabled resets consecutive_failures, inbox_ids capped at 10, url is http(s)) largely restate what the schema already documents. It adds no format or syntax detail beyond the schema, so it earns no premium here.

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?

The description names the exact resource (webhook) and the exact facets that can change (URL, event list, inbox filter, enabled flag), which is a specific verb+resource statement. That field-level scope cleanly separates it from cooper_register_webhook, cooper_delete_webhook, cooper_rotate_webhook_secret, and cooper_test_webhook without needing to open a 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?

"Use this when a webhook URL, event list, inbox filter, or enabled flag should change" gives an explicit trigger condition, which is clear usage context. It stops short of a 5 because it names no alternatives or exclusions (e.g. create via cooper_register_webhook, secret rotation via cooper_rotate_webhook_secret), leaving that routing to inference.

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.