Skip to main content
Glama

Cooper Email

List custom domains

cooper_list_domains
Read-onlyIdempotent

Use this when you need the custom domains on the signed-in account, including DNS status. Read-only; requires auth; no inputs. Returns {object:"list", data:[{id, domain, status, status_detail, mail, records, warnings, dns}]}. Each record has status valid, missing, or invalid, found from the last check, and hint (null, or {code, message, found_at} saying what to change). warnings is an empty array when none. existing_mail_provider means this hostname already has MX at another provider. Custom domains are included on Starter (15) and Pro (200). Free includes 1. Past that cap is HTTP 402 plan_limit_exceeded. Publish exactly the records returned, with their host, type, value, priority for MX, and ttl. The receiving MX hostname and the DKIM value come from that response. Do not invent them. dns.mode automatic means Cooper wrote the records in a zone it already controls. dns.mode external means you publish them at your DNS host. Keep one SPF TXT with a single include; an existing SPF is merged into it. A DMARC p=reject record is left as published and blocks mail until DKIM for that domain verifies. mail.receiving and mail.sending stay false until the matching records verify. Then POST /api/v1/inboxes with domain creates username@domain. Failure codes: unauthorized.

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_list_domains"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
dataNoItems on this page, in the order the tool description gives.
objectNoObject type name, such as list, message, or thread.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "description": "Custom domains on the account.",
      +  "properties": {
      +    "data": {
      +      "description": "Items on this page, in the order the tool description gives.",
      +      "items": {
      +        "properties": {
      +          "created_at": {
      +            "description": "ISO-8601 time the object was created."
      +          },
      +          "dns": {
      +            "description": "{mode}: automatic when Cooper wrote the records, external when you publish them."
      +          },
      +          "domain": {
      +            "description": "Hostname of the custom domain."
      +          },
      +          "id": {
      +            "description": "Domain id (dom_…). Pass it as domain_id to cooper_verify_domain."
      +          },
      +          "idempotent": {
      +            "description": "True when this result replays an earlier request with the same key instead of acting again."
      +          },
      +          "mail": {
      +            "description": "{receiving, sending, inboxes} flags. Each turns true once its records verify."
      +          },
      +          "notices": {
      +            "description": "Usage notices, such as [{type: limit_warning, resource, used, limit, upgrade_url}] at 80 percent of a plan limit."
      +          },
      +          "records": {
      +            "description": "DNS records to publish [{host, type, value, priority, ttl, status, found, hint}]. Publish exactly these."
      +          },
      +          "status": {
      +            "description": "pending until DNS matches, then verified."
      +          },
      +          "status_detail": {
      +            "description": "Plain-language note on what is still pending."
      +          },
      +          "warnings": {
      +            "description": "Problems found in existing DNS, such as existing_mail_provider. Empty when none."
      +          }
      +        },
      +        "type": "object"
      +      }
      +    },
      +    "object": {
      +      "description": "Object type name, such as list, message, or thread."
      +    }
      +  },
      +  "type": "object"
      +}
  2. Added

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations, the description discloses the auth requirement, plan caps (Starter 15, Pro 200, Free 1) with an HTTP 402 plan_limit_exceeded failure, and downstream verification behavior such as mail.receiving/sending staying false until records verify. That is substantial extra context, but it partially restates the return shape already covered by the output schema and the 'Failure codes: unauthorized.' line is truncated, leaving the error story incomplete.

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

Conciseness2/5

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

The lead sentence is well front-loaded, but the remainder sprawls into DNS publishing instructions, SPF/DMARC policy rules, plan quotas, and an unrelated POST /api/v1/inboxes follow-up. Much of that belongs in a setup or verification guide rather than a zero-input list tool's description, and the inline object literal with escaped quotes hurts readability.

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?

An output schema exists, so the description need not have restated the return fields and status enums. It is otherwise complete for a parameterless read tool, covering auth and the plan-limit failure. The truncated failure-code list and the absence of any pagination note are the only gaps.

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?

The tool takes zero parameters and the description confirms this explicitly with 'no inputs,' which matches the empty schema. Baseline for a parameterless tool is 4; there is nothing further to disambiguate.

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 opening clause names a specific verb and resource with scope: 'the custom domains on the signed-in account, including DNS status.' An agent immediately knows this is a read of domain records rather than a mutation. It stops short of a 5 because it never contrasts itself with a sibling such as cooper_add_domain or an inbox/forwarding listing.

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?

'Use this when you need the custom domains on the signed-in account' gives a clear trigger condition, and the trailing material tells the agent what to do with the result (publish the returned records, then POST to create an inbox). There is no explicit when-not-to-use or named alternative, which keeps it out of 5 territory.

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.