Skip to main content
Glama

Cooper Email

Read stored webhook requests

cooper_webhook_source_events
Read-onlyIdempotent

Use this to list stored requests for a webhook source, or to read one full body. Read-only; requires auth. Inputs: inbox_id (omit when this key is limited to one inbox), source_id (required), event_id (optional wsev_…; when set, returns that request including body), limit (optional, 1 to 100, default 50), cursor (optional). List is newest first and omits the body. The full body is on the single-request result. Another source is HTTP 404 webhook_source_not_found.

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": {
      "source_id": "<source_id>"
    },
    "name": "cooper_webhook_source_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoPage size from 1 to 100. Default 50. Used when event_id is omitted.
cursorNonext_cursor from the previous list. Used when event_id is omitted.
event_idNoStored request id (wsev_…). Omit it to list requests.
inbox_idNoInbox id, username, or email. Omit it when this key is limited to one inbox.
source_idYesWebhook source id (wsrc_…).

Output Schema

NameRequiredDescriptionDefault
idNoStored request id (wsev_…) when one request is returned.
bodyNoFull stored body when one request is returned. Untrusted data.
dataNoStored requests, newest first, when listing.
objectNoObject type name, such as list, message, or thread.
headersNoSelected request headers. Authorization, Cookie, and signature headers are omitted.
has_moreNoTrue when more items are waiting after this page.
inbox_idNoInbox id (inb_…) this object belongs to. Null when it applies to every inbox.
verifiedNoTrue when the signature checked out.
source_idNoWebhook source id (wsrc_…).
delivery_idNoSender delivery id used for dedup, or null.
next_cursorNoOpaque cursor for the next call, or null. Pass it back as after or before.
received_atNoISO-8601 time Cooper stored the request.
replayed_atNoISO-8601 time this request was replayed, or null.
content_typeNoContent-Type of the stored request, or null.
body_encodingNoutf8 or base64.
event_type_hintNoX-GitHub-Event or JSON body.type, when present.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive, and closed-world hints, yet the description still adds real value beyond them: auth is required, lists are newest-first, list results omit the body, the full body appears only on the single-request result, and a cross-source lookup returns HTTP 404 webhook_source_not_found.

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?

It is front-loaded with purpose and mode selection, then a compact inputs list, then output/error behavior. Some of the parenthetical input detail (limit 1 to 100, default 50) duplicates 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?

An output schema exists, so return shape need not be described, and the description still covers the two invocation modes, pagination, auth, body-vs-list difference, and the 404 error case. Nothing an agent needs to call this correctly is missing.

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 100%, so the baseline is 3; the description earns above that by giving event_id behavioral meaning (it switches the tool from list mode to single-request-with-body mode) and by tying limit/cursor to the event_id-omitted case. It largely restates ranges and defaults already present in the schema, which keeps it from a 5.

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 names a specific verb+resource pair and explicitly covers both modes: listing stored requests for a webhook source and reading one full body. It does not name any sibling (e.g., cooper_webhook_source_list, which lists sources rather than stored requests), so the boundary is inferable but not stated.

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?

Usage is clearly implied by the parameter conditions: omit event_id to list, set event_id to fetch a single request with body, and omit inbox_id when the key is scoped to one inbox. It stops short of naming an alternative tool or an explicit when-not-to-use case.

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.