Skip to main content
Glama

Cooper Email

Verify a custom domain now

cooper_verify_domain

Use this when DNS for a custom domain may have been published and you should check it now instead of waiting for the daily cron. Requires auth. Inputs: domain_id (required; the dom_… id from cooper_add_domain or cooper_list_domains). At most once per 60 seconds; the next call returns HTTP 429 rate_limited with Retry-After. Runs the same DNS check as the cron, stores per-record status (valid, missing, or invalid), found, and hint, plus warnings, and returns the domain. hint is null when the record is valid or no specific mistake was found. warnings is an empty array when none. For dns.mode external the check reads public DNS for the receiving MX, return-path, DKIM, and verify TXT. Fires domain.verified once when status moves from pending to verified. 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, domain_not_found, rate_limited.

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": {
      "domain_id": "<domain_id>"
    },
    "name": "cooper_verify_domain"
  }
}

Input Schema

NameRequiredDescriptionDefault
domain_idYesDomain id (dom_…) from cooper_add_domain or cooper_list_domains

Output Schema

NameRequiredDescriptionDefault
idNoDomain id (dom_…). Pass it as domain_id to cooper_verify_domain.
dnsNo{mode}: automatic when Cooper wrote the records, external when you publish them.
mailNo{receiving, sending, inboxes} flags. Each turns true once its records verify.
domainNoHostname of the custom domain.
statusNopending until DNS matches, then verified.
noticesNoUsage notices, such as [{type: limit_warning, resource, used, limit, upgrade_url}] at 80 percent of a plan limit.
recordsNoDNS records to publish [{host, type, value, priority, ttl, status, found, hint}]. Publish exactly these.
warningsNoProblems found in existing DNS, such as existing_mail_provider. Empty when none.
created_atNoISO-8601 time the object was created.
idempotentNoTrue when this result replays an earlier request with the same key instead of acting again.
status_detailNoPlain-language note on what is still pending.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "description": "The domain after a fresh DNS check.",
      +  "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"
      +}
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

The description adds substantial behavior beyond the annotations: it runs the same DNS check as the cron, stores per-record status, emits domain.verified on pending-to-verified transitions, and documents rate limiting, plan limits, and failure codes. It also explains how external DNS checks behave and how SPF/DMARC records affect receiving and sending. These details are consistent with the non-read-only, open-world annotations.

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 description is front-loaded with the trigger, auth, input, and rate limit, which is good structure. However, it becomes very long for a one-parameter tool and includes tangential setup guidance about publishing DNS records, SPF/DMARC behavior, and creating an inbox via POST. Those details may help interpret results, but several sentences do not directly earn their place in a verify-domain tool description.

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?

Given the tool's complexity, the description is complete: it covers side effects, rate limits, plan caps, DNS modes, event emission, and failure codes. An output schema exists, so return-value detail is not strictly required, yet the description still explains key status fields without depending on the schema alone. Nothing essential for calling the tool correctly appears to be 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 description coverage is 100%, and the description largely restates the schema: domain_id is required and comes from cooper_add_domain or cooper_list_domains. It does not add syntax, format, or validation meaning beyond what the schema already provides. The baseline of 3 is appropriate when the schema already documents the only parameter.

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 names a specific verb and resource — verifying a custom domain now — and explicitly contrasts this with waiting for the daily cron. It also ties the tool to the relevant domain workflow by naming where domain_id comes from. An agent can distinguish this from sibling domain tools without ambiguity.

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?

It gives an explicit trigger: use this when DNS may have been published and you need to check immediately rather than wait for the cron. It also states auth requirements, rate limits, and plan caps, which are operational conditions for correct use. This is strong when-to-use guidance with clear constraints.

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.