Skip to main content
Glama

Cooper Email

Inject inbound (tests)

cooper_inject_inbound

Use this only for testing: when you need to simulate an email arriving in a Cooper inbox without sending real mail (for example to try a webhook or task flow end to end). Requires auth. Stores the message as received mail and fires message.received webhooks, like real inbound mail. Injected mail carries no DMARC/DKIM results, so it only creates an owner task if the inbox has sender authentication turned off (require_sender_auth=false). Inputs: inbox_id (required), from (required; sender address), subject, text, html, attachments, client_id (optional idempotency key). Returns the stored message. Real inbound mail arrives automatically; never use this to fake mail for a user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromYesSender address for the simulated message
htmlNoOptional HTML body
textNoPlain-text body
subjectNoSubject line
inbox_idYesInbox id (inb_…), username, or full email address
client_idNoOptional idempotency key
attachmentsNoOptional files, base64-encoded

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / attachments / description
      Added value: +"Optional files, base64-encoded"
    • addedInput schema / properties / client_id / description
      Added value: +"Optional idempotency key"
    • addedInput schema / properties / from / description
      Added value: +"Sender address for the simulated message"
    • addedInput schema / properties / html / description
      Added value: +"Optional HTML body"
    • addedInput schema / properties / inbox_id / description
      Added value: +"Inbox id (inb_…), username, or full email address"
    • addedInput schema / properties / subject / description
      Added value: +"Subject line"
    • addedInput schema / properties / text / description
      Added value: +"Plain-text body"
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false. The description goes well beyond: requires auth, stores the message as received mail, fires message.received webhooks, carries no DMARC/DKIM results, and only creates an owner task when require_sender_auth=false — precisely the side-effect caveats an agent needs.

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?

Front-loaded with purpose and the test-only constraint, then behavior, inputs, and return value. It is one dense paragraph but nearly every clause carries information; only the input enumeration lightly duplicates the schema.

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 7-parameter mutation tool with no output schema, the description covers auth, side effects, webhook firing, the sender-auth caveat, the parameter list, and even the return value ('Returns the stored message'). Nothing needed to call it correctly is missing.

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 the schema already documents all 7 parameters including client_id as an idempotency key and attachments as base64. The description mostly restates these ('from (required; sender address)', 'client_id (optional idempotency key)'), adding little beyond the schema, so the baseline 3 applies.

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: simulate inbound email arriving in a Cooper inbox without sending real mail. It distinguishes itself from the normal path by noting 'real inbound mail arrives automatically,' so an agent can tell it apart from send/reply siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use ('only for testing... to try a webhook or task flow end to end') and when-not ('never use this to fake mail for a user'), with the real-inbound alternative named. Nothing is left 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.