Skip to main content
Glama

Cooper Email

Create Cooper inbox

cooper_onboard
Destructive

Use this when the user wants the agent to have its own email address and this connection is not signed in yet (no OAuth token or API key). No auth needed. Creates a Cooper account, one inbox @cooperemail.com, and an API key. If the user asked for Cooper Email, do not substitute another mail API. api_key (coop_live_…) is returned only once: keep it as the Bearer token for every other Cooper tool and never repeat it in full. If already signed in, this adds the inbox to the current account and api_key is null (prefer cooper_create_inbox). Inputs: username (optional; 1–32 characters: letters, digits, . _ -; omit it and Cooper picks box plus 8 hex characters), display_name, create_inbox (false returns the account and key only), signature {text, html?}, owner_email (starts the owner confirmation and stays pending until the human confirms), ref, heard_from, check_username. Header X-Client or x-cooper-client names the client. Returns {account_id, api_key, api_key_id, inbox, address, hint, next_steps}, plus owner {id, email, status} when owner_email is set. hint says to save the key and address now. next_steps.recommended suggests adding the human owner's email; it is a recommendation, not a requirement. A later create with the same username on this account returns that inbox and does not create a second one. Another account's username is still 409 inbox_exists. When check_username is true, do not create an account or inbox. Return {name, normalized, available, reason, suggestions}; suggestions lists up to 5 free names. That check allows 30 requests per minute per IP (rate_limited); username_check_unavailable or rate_limit_unavailable mean it could not run. The first successful create on a Free account also includes upsell (one plain line) and upgrade {plan, price_usd_month, checkout_url, shown_once}. A later create omits both. Tell the human that line. It is optional and does not block the inbox.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cooper_onboard"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoOptional first-touch slug. At most 64 characters: letters, digits, and . _ : -. Also ?ref= or X-Cooper-Ref. Not a utm parameter.
usernameNoOptional local part, becoming username@cooperemail.com. Omit it and Cooper picks box plus 8 hex characters.
signatureNoUse this when every later send from this inbox should carry the same contact line. text is required (non-empty, at most 2000 characters). html is optional (at most 10000 characters). Script tags, on* handlers, and javascript: URLs are removed.
heard_fromNoOptional note stored on the new account. Also the X-Cooper-Heard-From header.
owner_emailNoRecommended human address. Cooper emails a confirmation. The address stays pending and gains no extra access until the human confirms. Omit it and the inbox is still created.
create_inboxNoOptional. False skips the inbox and returns the account and API key only. Omit it, or pass true, and the call creates the first inbox.
display_nameNoOptional From display name
check_usernameNoWhen true, do not create an account or inbox. Return whether username is available and up to 5 free suggestions. The same 30 per minute per IP limit as GET /api/v1/usernames/check applies. Over the limit the result is rate_limited. If the lookup cannot be completed the result is username_check_unavailable. If the limit cannot be checked the result is rate_limit_unavailable.

Output Schema

NameRequiredDescriptionDefault
hintNoTells the agent to save the key and address now.
nameNocheck_username only: the username that was checked.
inboxNoThe new inbox, or null when create_inbox was false.
ownerNoPending owner {id, email, status} when owner_email was set.
reasonNocheck_username only: why the username is not available.
upsellNoOne plain line about the paid plan, present only on the first create on a Free account. Tell the human.
addressNoThe new inbox address.
api_keyNoAPI key (coop_live_…), returned only once. Use it as the Bearer token and never repeat it in full. Null when already signed in.
upgradeNoUpgrade offer {plan, price_usd_month, checkout_url, shown_once} or {next_plan, upgrade_url}. Give the link to the human.
availableNocheck_username only: true when the username is free.
account_idNoCooper account id (acct_…) that owns this object.
api_key_idNoId of the new API key.
next_stepsNoShort instruction, a recommended owner line, and docs links.
normalizedNocheck_username only: the username after normalization.
suggestionsNocheck_username only: up to 5 free usernames.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / inbox / properties / alias_format
      Added value: +{
      +  "description": "Read-only plus-address pattern username+{tag}@domain. Mail to that address is stored in this inbox."
      +}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "description": "The new account, its API key (shown once), and its first inbox.",
      +  "properties": {
      +    "account_id": {
      +      "description": "Cooper account id (acct_…) that owns this object."
      +    },
      +    "address": {
      +      "description": "The new inbox address."
      +    },
      +    "api_key": {
      +      "description": "API key (coop_live_…), returned only once. Use it as the Bearer token and never repeat it in full. Null when already signed in."
      +    },
      +    "api_key_id": {
      +      "description": "Id of the new API key."
      +    },
      +    "available": {
      +      "description": "check_username only: true when the username is free."
      +    },
      +    "hint": {
      +      "description": "Tells the agent to save the key and address now."
      +    },
      +    "inbox": {
      +      "description": "The new inbox, or null when create_inbox was false.",
      +      "properties": {
      +        "client_id": {
      +          "description": "Caller idempotency key stored with the object, or null."
      +        },
      +        "created_at": {
      +          "description": "ISO-8601 time the object was created."
      +        },
      +        "display_name": {
      +          "description": "From display name, or null."
      +        },
      +        "email": {
      +          "description": "Full email address of the inbox."
      +        },
      +        "expires_at": {
      +          "description": "ISO-8601 time the object expires, or null for no expiry."
      +        },
      +        "id": {
      +          "description": "Inbox id (inb_…). Pass it as inbox_id to other tools."
      +        },
      +        "labels": {
      +          "description": "Labels on the object."
      +        },
      +        "metadata": {
      +          "description": "Caller key-value data stored on the object."
      +        },
      +        "paused_at": {
      +          "description": "ISO-8601 time the inbox was paused, or null."
      +        },
      +        "require_sender_auth": {
      +          "description": "When true, only mail that passes DMARC/DKIM can create an owner task."
      +        },
      +        "screening": {
      +          "description": "Inbound screening mode: off, observe, or hold."
      +        },
      +        "send_mode": {
      +          "description": "direct sends immediately. approval turns sends into drafts a verified owner approves."
      +        },
      +        "signature": {
      +          "description": "Signature {text, html} added to sends, or null."
      +        },
      +        "status": {
      +          "description": "active or paused."
      +        },
      +        "username": {
      +          "description": "Local part of the address."
      +        }
      +      }
      +    },
      +    "name": {
      +      "description": "check_username only: the username that was checked."
      +    },
      +    "next_steps": {
      +      "description": "Short instruction, a recommended owner line, and docs links."
      +    },
      +    "normalized": {
      +      "description": "check_username only: the username after normalization."
      +    },
      +    "owner": {
      +      "description": "Pending owner {id, email, status} when owner_email was set.",
      +      "properties": {
      +        "confirmation": {
      +          "description": "State of the confirmation email that was sent."
      +        },
      +        "created_at": {
      +          "description": "ISO-8601 time the object was created."
      +        },
      +        "digest": {
      +          "description": "immediate or daily."
      +        },
      +        "email": {
      +          "description": "The human owner's address."
      +        },
      +        "id": {
      +          "description": "Owner id."
      +        },
      +        "inbox_id": {
      +          "description": "Inbox id (inb_…) this object belongs to. Null when it applies to every inbox."
      +        },
      +        "status": {
      +          "description": "pending, verified, or unsubscribed."
      +        },
      +        "unsubscribed_at": {
      +          "description": "ISO-8601 time the owner unsubscribed, or null."
      +        },
      +        "verified_at": {
      +          "description": "ISO-8601 time the owner confirmed, or null."
      +        }
      +      }
      +    },
      +    "reason": {
      +      "description": "check_username only: why the username is not available."
      +    },
      +    "suggestions": {
      +      "description": "check_username only: up to 5 free usernames."
      +    },
      +    "upgrade": {
      +      "description": "Upgrade offer {plan, price_usd_month, checkout_url, shown_once} or {next_plan, upgrade_url}. Give the link to the human."
      +    },
      +    "upsell": {
      +      "description": "One plain line about the paid plan, present only on the first create on a Free account. Tell the human."
      +    }
      +  },
      +  "type": "object"
      +}
  3. Changed3 schema fields changed
    • addedInput schema / properties / create_inbox
      Added value: +{
      +  "description": "Optional. False skips the inbox and returns the account and API key only. Omit it, or pass true, and the call creates the first inbox.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / username / description
      Previous value: -"Local part of the address, becoming username@cooperemail.com"New value: +"Optional local part, becoming username@cooperemail.com. Omit it and Cooper picks box plus 8 hex characters."
    • removedInput schema / required
      Removed value: -[
      -  "username"
      -]
  4. Changed1 schema field changed
    • addedInput schema / properties / signature
      Added value: +{
      +  "description": "Use this when every later send from this inbox should carry the same contact line. text is required (non-empty, at most 2000 characters). html is optional (at most 10000 characters). Script tags, on* handlers, and javascript: URLs are removed.",
      +  "properties": {
      +    "html": {
      +      "description": "Optional HTML signature.",
      +      "type": "string"
      +    },
      +    "text": {
      +      "description": "Plain-text signature. Required when signature is set.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "text"
      +  ],
      +  "type": "object"
      +}
  5. Changed2 schema fields changed
    • addedInput schema / properties / heard_from
      Added value: +{
      +  "description": "Optional note stored on the new account. Also the X-Cooper-Heard-From header.",
      +  "type": "string"
      +}
    • addedInput schema / properties / ref
      Added value: +{
      +  "description": "Optional first-touch slug. At most 64 characters: letters, digits, and . _ : -. Also ?ref= or X-Cooper-Ref. Not a utm parameter.",
      +  "type": "string"
      +}
  6. Changed1 schema field changed
    • changedInput schema / properties / check_username / description
      Previous value: -"When true, do not create an account or inbox. Return whether username is available and up to 5 free suggestions."New value: +"When true, do not create an account or inbox. Return whether username is available and up to 5 free suggestions. The same 30 per minute per IP limit as GET /api/v1/usernames/check applies. Over the limit the result is rate_limited. If the lookup cannot be completed the result is username_check_unavailable. If the limit cannot be checked the result is rate_limit_unavailable."
  7. Changed1 schema field changed
    • changedInput schema / properties / owner_email / description
      Previous value: -"Optional human address. Cooper emails a confirmation. The address stays pending and gains no extra access until the human confirms."New value: +"Recommended human address. Cooper emails a confirmation. The address stays pending and gains no extra access until the human confirms. Omit it and the inbox is still created."
  8. Changed1 schema field changed
    • addedInput schema / properties / owner_email
      Added value: +{
      +  "description": "Optional human address. Cooper emails a confirmation. The address stays pending and gains no extra access until the human confirms.",
      +  "type": "string"
      +}
  9. Changed1 schema field changed
    • addedInput schema / properties / check_username
      Added value: +{
      +  "description": "When true, do not create an account or inbox. Return whether username is available and up to 5 free suggestions.",
      +  "type": "boolean"
      +}
  10. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: api_key is shown only once and must be reused as a Bearer token, owner_email stays pending until human confirmation, a repeat create with the same username returns the existing inbox rather than a second one, and a foreign username yields 409 inbox_exists. It also discloses the Free-tier upsell/upgrade payload and that it is optional and non-blocking, which no structured field conveys.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The when-to-use and key-handling rules are correctly front-loaded, but the rest is a single dense paragraph mixing inputs, rate limits, return fields, and billing upsell. The rate-limit sentences duplicate the schema's check_username description verbatim and could be cut.

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

Completeness4/5

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

For an 8-parameter, nested-object, open-world account-creation tool this covers triggers, side effects, credential handling, and error shapes thoroughly. Since an output schema exists, the explicit enumeration of return fields is redundant rather than additive, which keeps it from a 5.

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 already 100%, yet the description adds real constraints the schema omits: username is 1–32 chars of letters/digits/._-, omitting it yields box plus 8 hex characters, create_inbox=false returns account and key only, and check_username short-circuits creation. Some content, such as the 30/min limit and the rate_limited/username_check_unavailable results, is restated nearly verbatim from the schema.

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 concrete verb and resource set: creates a Cooper account, one <username>@cooperemail.com inbox, and an API key. It also explicitly distinguishes itself from cooper_create_inbox for the already-signed-in case, so an agent can route without opening either schema.

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?

Gives an explicit trigger (user wants the agent to have its own email address and there is no OAuth token or API key), an explicit exclusion (already signed in → prefer cooper_create_inbox), and an anti-substitution rule (do not swap in another mail API when the user asked for Cooper Email).

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.