Skip to main content
Glama

Cooper Email

Update an inbox

cooper_update_inbox
DestructiveIdempotent

Use this when an inbox should pause (stop sending and accepting new mail without deleting the address, threads, or history) or resume, or when you need to change its display name, metadata, signature, inbound screening, sender authentication, or send_mode. Requires auth. Inputs: inbox_id (required; inbox id, username, or email) and at least one of status (active or paused), require_sender_auth, display_name (null clears it), metadata (merged; a null value removes that key), screening (off, observe, or hold), send_mode (direct or approval), signature ({text, html?}, or null to remove it). Bad values return HTTP 400 invalid_metadata, invalid_screening, or invalid_send_mode. send_mode approval applies immediately when a verified owner exists: sends, replies, and forwards become pending drafts and those owners are emailed. No verified owner returns HTTP 409 owner_required and leaves send_mode unchanged. Back to direct is immediate only when the inbox never had a verified owner. Otherwise the owners are emailed and the change waits until they confirm. Opening the confirm link does not change the inbox, and an API key cannot submit it. Screening never drops mail. observe, the default, adds the suspicious label at a heuristic score of 40 or higher. hold stores suspicious mail with the held label, fires message.held instead of message.received, and creates no task. off skips scoring (reason screening_off). Pausing sets paused_at; resuming clears it. A paused inbox still counts toward the plan inbox limit, existing messages stay readable, and sends return HTTP 403 inbox_paused until status is active. Returns the inbox {id, username, email, display_name, created_at, require_sender_auth, labels, expires_at, status, paused_at, metadata, client_id, screening, send_mode, signature}.

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": {
      "inbox_id": "<inbox_id>"
    },
    "name": "cooper_update_inbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
statusNopaused stops new sends and drops new inbound mail. active resumes the inbox.
inbox_idYesInbox id (inb_…), username, or full email address owned by this key
metadataNoMerged into the current metadata. A null value removes that key. At most 256 keys, keys at most 256 characters, values string number or boolean, serialized at most 16 KB. Otherwise 400 invalid_metadata.
screeningNoInbound prompt-injection screen. off skips scoring and records why. observe labels suspicious mail. hold stores suspicious mail for review and fires message.held. Anything else is 400 invalid_screening.
send_modeNoEntering approval applies immediately when a verified owner exists and holds POST /messages, reply, reply-all, and forward until that owner approves the current content. No verified owner returns HTTP 409 owner_required. An inbox already in approval can return to direct only when it has never had a verified owner. An unsubscribed owner still blocks that switch. Leaving approval for direct emails verified owners and waits for confirmation. Anything else is 400 invalid_send_mode.
signatureNoUse this when the inbox signature should change. Pass {text, html?} to set or replace it. text is required, non-empty, and at most 2000 characters. html is optional and at most 10000 characters. Pass null to remove it. Omit it to leave the stored signature unchanged.
display_nameNoFrom display name. Send null to clear it. A blank string also clears it.
require_sender_authNoWhen true, owner or allowlist mail becomes a task only if DMARC passes or DKIM passes and aligns with From.

Output Schema

NameRequiredDescriptionDefault
idNoInbox id (inb_…). Pass it as inbox_id to other tools.
emailNoFull email address of the inbox.
labelsNoLabels on the object.
statusNoactive or paused.
metadataNoCaller key-value data stored on the object.
usernameNoLocal part of the address.
client_idNoCaller idempotency key stored with the object, or null.
paused_atNoISO-8601 time the inbox was paused, or null.
screeningNoInbound screening mode: off, observe, or hold.
send_modeNodirect sends immediately. approval turns sends into drafts a verified owner approves.
signatureNoSignature {text, html} added to sends, or null.
created_atNoISO-8601 time the object was created.
expires_atNoISO-8601 time the object expires, or null for no expiry.
alias_formatNoRead-only plus-address pattern username+{tag}@domain. Mail to that address is stored in this inbox.
display_nameNoFrom display name, or null.
require_sender_authNoWhen true, only mail that passes DMARC/DKIM can create an owner task.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / 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 inbox after the update.",
      +  "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."
      +    }
      +  },
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / signature
      Added value: +{
      +  "description": "Use this when the inbox signature should change. Pass {text, html?} to set or replace it. text is required, non-empty, and at most 2000 characters. html is optional and at most 10000 characters. Pass null to remove it. Omit it to leave the stored signature unchanged."
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / send_mode / description
      Previous value: -"Entering approval applies immediately and holds POST /messages, reply, reply-all, and forward until a verified owner approves the current content. Leaving approval for direct emails verified owners and waits for confirmation. Anything else is 400 invalid_send_mode."New value: +"Entering approval applies immediately when a verified owner exists and holds POST /messages, reply, reply-all, and forward until that owner approves the current content. No verified owner returns HTTP 409 owner_required. An inbox already in approval can return to direct only when it has never had a verified owner. An unsubscribed owner still blocks that switch. Leaving approval for direct emails verified owners and waits for confirmation. Anything else is 400 invalid_send_mode."
  5. Changed1 schema field changed
    • addedInput schema / properties / send_mode
      Added value: +{
      +  "description": "Entering approval applies immediately and holds POST /messages, reply, reply-all, and forward until a verified owner approves the current content. Leaving approval for direct emails verified owners and waits for confirmation. Anything else is 400 invalid_send_mode.",
      +  "enum": [
      +    "direct",
      +    "approval"
      +  ],
      +  "type": "string"
      +}
  6. Changed1 schema field changed
    • addedInput schema / properties / screening
      Added value: +{
      +  "description": "Inbound prompt-injection screen. off skips scoring and records why. observe labels suspicious mail. hold stores suspicious mail for review and fires message.held. Anything else is 400 invalid_screening.",
      +  "enum": [
      +    "off",
      +    "observe",
      +    "hold"
      +  ],
      +  "type": "string"
      +}
  7. Changed2 schema fields changed
    • addedInput schema / properties / display_name
      Added value: +{
      +  "description": "From display name. Send null to clear it. A blank string also clears it.",
      +  "type": "string"
      +}
    • addedInput schema / properties / metadata
      Added value: +{
      +  "description": "Merged into the current metadata. A null value removes that key. At most 256 keys, keys at most 256 characters, values string number or boolean, serialized at most 16 KB. Otherwise 400 invalid_metadata.",
      +  "type": "object"
      +}
  8. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say destructive/idempotent/openWorld; the description goes far beyond by disclosing the asynchronous send_mode approval flow, that opening the confirm link does not change the inbox and an API key cannot submit it, the 409 owner_required and 403 inbox_paused failure modes, and the concrete consequences of pausing (counts toward plan limit, messages stay readable). These are exactly the non-obvious side effects an agent needs before invoking a mutating tool.

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?

It is one dense run-on paragraph that front-loads the when-to-use clause well, but it repeatedly restates schema-level detail (screening enum meanings, signature character limits, send_mode enum text) that the agent already receives in the input schema. Trimming the restated parameter text would have made the behavioral content much more scannable.

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 an 8-parameter mutating tool with nested objects, enums, an output schema, and annotations, the description covers the risky paths (approval mode, owner confirmation, pause side effects, error codes) and even summarizes the returned inbox shape. Nothing an agent needs to call this safely 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 already 100%, so the baseline is 3, but the description adds real meaning: it states the 'at least one of' requirement that the schema does not encode, clarifies that metadata is merged with null deleting a key, and that display_name/signature null clears while omission leaves the value unchanged. It does duplicate some enum semantics already present in the schema descriptions.

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 opens with a specific verb+resource and enumerates the exact mutation surface: pause/resume status, display_name, metadata, signature, inbound screening, sender authentication, and send_mode. That enumeration makes it trivially distinguishable from cooper_create_inbox, cooper_delete_inbox, and cooper_get_inbox, which share the same resource but a different operation.

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 explicit triggering conditions ('Use this when an inbox should pause ... or resume, or when you need to change its display name, metadata, signature ...'), and the 'at least one of' clause tells the agent a no-op call is invalid. It does not name a sibling alternative or state a when-not-to-use case, so it stops short of a 5.

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.