Skip to main content
Glama

CMO Studio: deploy and host AI-built apps

Create a mail API key

create_mail_api_key

Give a project's app what it needs to send email: a Mail API key written straight into the project's variables (CMO_MAIL_API_KEY, plus CMO_MAIL_URL), never shown to anyone. The app then POSTs to $CMO_MAIL_URL with Authorization: Bearer $CMO_MAIL_API_KEY ({from, to, subject, html|text}; Resend-compatible). Optionally limit the key to one verified Mail domain. Build the app by the deliverability rules in studio_guide topic mail: confirm addresses at sign-up, handle bounces and 422 invalid_recipient, unsubscribe for newsletters.

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": {
      "slug": "<slug>"
    },
    "name": "create_mail_api_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesProject slug
domainNoOnly this Mail domain (optional)
envNameNoVariable name (default CMO_MAIL_API_KEY)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations supply only destructiveHint=false, so the description carries most of the burden, and it does disclose meaningful traits: the key is injected into project variables and never displayed, the env var naming, the Bearer auth POST pattern with Resend-compatible payload, and the 422 invalid_recipient failure mode. It is silent on important mutation semantics — whether re-invoking rotates or overwrites an existing key, whether prior keys are invalidated, and what permissions the caller needs. That gap keeps it at 3.

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

Conciseness5/5

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

Three dense sentences, front-loaded with the outcome (key written into project variables) before the operational detail. No filler; even the deliverability sentence carries actionable failure handling (bounces, 422 invalid_recipient).

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?

No output schema exists, and the description compensates by stating where the credential lands and how the app consumes it, which is what an agent needs to call it correctly. Missing only the lifecycle question — behavior on repeat calls or existing keys — which matters for a credential-issuing tool.

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 100% so the 3 baseline applies, but the description adds real meaning beyond it: the domain parameter must be a *verified* Mail domain (the schema only says 'Only this Mail domain'), and the envName default is tied to the concrete CMO_MAIL_API_KEY variable the app will read. Slug is not elaborated, but the added constraint on domain justifies above baseline.

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 ('Create a mail API key ... written straight into the project's variables') and immediately describes the concrete effect: CMO_MAIL_API_KEY and CMO_MAIL_URL appear as project variables. That is enough to distinguish it from sibling tools such as add_mail_domain or verify_mail_domain, which manage domains rather than credentials.

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?

The description makes clear when the tool applies (giving a project's app what it needs to send email) and notes the optional constraint of a single verified Mail domain, which implies domain verification should come first. It also points to studio_guide topic mail for build-time rules. It stops short of explicitly naming add_mail_domain/verify_mail_domain as prerequisites or stating when not to use it.

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.