Skip to main content
Glama

Cooper Email

Create a webhook source

cooper_webhook_source_create

Use this when a third-party service (Stripe, GitHub, a form, or your own app) should reach this agent through its Cooper inbox. Requires auth. Inputs: inbox_id (omit when this key is limited to one inbox), name (1 to 40 characters: lowercase letters, digits, underscore, hyphen), signature (optional object with preset stripe, github, standard, or hmac_sha256, secret, optional header, and optional max_age_seconds). Returns the source and url once. url is the public POST target. Later reads show url_hint (last 4 characters) and never the token or the secret. At most 10 sources per inbox (HTTP 409 webhook_source_limit). A matching request writes webhook_source.received.

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>"
    },
    "name": "cooper_webhook_source_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesSource name, 1 to 40 characters: lowercase letters, digits, underscore, or hyphen.
inbox_idNoInbox id, username, or email. Omit it when this key is limited to one inbox.
signatureNoHow to verify the sender. preset is stripe, github, standard, or hmac_sha256. secret is stored encrypted and never returned. header overrides the preset header. max_age_seconds defaults to 300 for stripe and standard.

Output Schema

NameRequiredDescriptionDefault
idNoWebhook source id (wsrc_…).
urlNoPublic POST URL. Shown on create and rotate only.
nameNoSource name.
objectNoObject type name, such as list, message, or thread.
enabledNoTrue when the object is active.
inbox_idNoInbox id (inb_…) this object belongs to. Null when it applies to every inbox.
url_hintNoLast 4 characters of the receiver token.
signatureNopreset, header, and max_age_seconds. The secret is not included.
created_atNoISO-8601 time the object was created.
updated_atNoISO-8601 time the object last changed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (which only say this is non-read-only, non-destructive, non-idempotent, and not open-world), the description discloses auth requirements, the 10-source-per-inbox cap with its 409 webhook_source_limit code, and that url is returned exactly once while later reads expose only url_hint. It also states that the token and secret are never returned again and that a matching request emits webhook_source.received, which is non-obvious runtime behavior.

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 when-to-use sentence is front-loaded and each subsequent sentence carries operational value (auth, limits, one-time url, secret non-disclosure, emitted event). It is dense rather than padded, though the restated name and signature rules duplicate the schema and could be trimmed.

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 nested-parameter creation tool with an output schema, the description covers everything an agent needs: prerequisites (auth), limits and failure mode (409), and the crucial one-time nature of the returned url. Nothing material about calling it correctly is left to inference.

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 name, inbox_id, and the nested signature fields are already fully documented in structured data. The description largely restates those constraints (character rules, preset list, max_age_seconds), adding only the mild framing that inbox_id may be omitted for single-inbox keys. Baseline 3 is appropriate when the schema carries the load.

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 concrete scenario (a third-party service such as Stripe or GitHub reaching the agent through its Cooper inbox) and names the resource being created, so the verb+resource pair is unambiguous. It stops short of distinguishing this from sibling tools like cooper_register_webhook or cooper_rotate_webhook_secret, which an agent would have to reason about unaided.

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 gives clear triggering context: use this when an external service should POST into this agent's Cooper inbox, which is exactly the decision an agent needs to make. What is missing is any explicit exclusion or pointer to the alternative webhook-related siblings, so the agent is not told when this is the wrong choice.

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.