Skip to main content
Glama

Get email

get_email
Read-onlyIdempotent

Get a single email by public id (msg_…): its status, and in delivery the recipient's mail server, its exact reply (250 … when accepted, 5xx … when refused), TLS and the latest deferral. delivered_at minus created_at is how long it took to land.

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": {
      "id": "<id>"
    },
    "name": "get_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesEmail id (msg_…)

Output Schema

NameRequiredDescriptionDefault
emailYesThe email

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / email / properties / held_back / description
      Previous value: -"Recipients Groundmail validation held back before sending, with why; empty when none were"New value: +"Recipients held back before sending (suppressed, or by Groundmail validation), with why; empty when none were"
    • changedOutput schema / properties / email / properties / held_back / items / properties / reason / description
      Previous value: -"Why: invalid_address (cannot exist), no_mail_server (domain takes no email), previously_bounced (hard-bounced for a Groundmail sender in the last 90 days), mailbox_not_found, or likely_bot_signup (looks like a bot sign-up; only when the send opted in)"New value: +"Why: suppressed (on the suppression list), invalid_address (cannot exist), no_mail_server (domain takes no email), previously_bounced (hard-bounced for a Groundmail sender in the last 90 days), mailbox_not_found, or likely_bot_signup (looks like a bot sign-up; only when the send opted in)"
  2. Changed2 schema fields changed
    • changedOutput schema / properties / email / properties / tenant / description
      Previous value: -"External id of the tenant the email was sent as. Present only when it was sent as a tenant"New value: +"External id of the tenant the email was sent as. Present only when it was sent as a tenant; null once that tenant is deleted"
    • addedOutput schema / properties / email / properties / tenant_deleted
      Added value: +{
      +  "description": "True when the email was sent as a tenant that has since been deleted. Absent otherwise",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • addedOutput schema / properties / email / properties / detected_category
      Added value: +{
      +  "description": "What Groundmail decided the email is: transactional or product. Null while it is being checked, when its template was not settled yet, and for mail Groundmail does not check (newsletter, tests)",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  4. Changed1 schema field changed
    • changedOutput schema / properties / email / properties / held_back / items / properties / reason / description
      Previous value: -"Why: invalid_address (cannot exist), no_mail_server (domain takes no email), previously_bounced (hard-bounced for a Groundmail sender in the last 90 days) or mailbox_not_found"New value: +"Why: invalid_address (cannot exist), no_mail_server (domain takes no email), previously_bounced (hard-bounced for a Groundmail sender in the last 90 days), mailbox_not_found, or likely_bot_signup (looks like a bot sign-up; only when the send opted in)"
  5. Changed1 schema field changed
    • addedOutput schema / properties / email / properties / batch_id
      Added value: +{
      +  "description": "The batch send it came from (batch_…), for get_batch and cancel_batch; null for a single send",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  6. Changed1 schema field changed
    • addedOutput schema / properties / email / properties / delivery
      Added value: +{
      +  "description": "What the recipient's mail server said about the latest delivery attempt. Null until an attempt reports one, and for test emails. delivered_at minus created_at is how long it took to land",
      +  "properties": {
      +    "deferred_at": {
      +      "description": "When the latest deferral happened (ISO 8601)",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "deferred_response": {
      +      "description": "Its reply to the latest deferral (a 4xx such as greylisting; delivery is retried); null when none",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "receiving_server": {
      +      "description": "Hostname of the recipient's mail server, e.g. gmail-smtp-in.l.google.com",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "response": {
      +      "description": "Its exact SMTP reply to the latest attempt that finished: 250 … when it accepted the email, 5xx … when it refused it",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "tls": {
      +      "description": "Whether the connection used TLS; null when the attempt did not say",
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "receiving_server",
      +    "response",
      +    "tls",
      +    "deferred_response",
      +    "deferred_at"
      +  ],
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
  7. Changed1 schema field changed
    • addedOutput schema / properties / email / properties / stream
      Added value: +{
      +  "description": "Mail stream it went out on: transactional, product or newsletter (each sends from its own IPs)",
      +  "type": "string"
      +}
  8. Changed1 schema field changed
    • addedOutput schema / properties / email / properties / tenant
      Added value: +{
      +  "description": "External id of the tenant the email was sent as. Present only when it was sent as a tenant",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  9. Changed1 schema field changed
    • addedOutput schema / properties / email / properties / test
      Added value: +{
      +  "description": "True when the email never reached the mail server: sent with a test key (gm_test_…) or only to simulator addresses. Its status and events are simulated",
      +  "type": "boolean"
      +}
  10. Changed1 schema field changed
    • addedOutput schema / properties / email / properties / held_back
      Added value: +{
      +  "description": "Recipients Groundmail validation held back before sending, with why; empty when none were",
      +  "items": {
      +    "properties": {
      +      "email": {
      +        "description": "The held-back address",
      +        "type": "string"
      +      },
      +      "reason": {
      +        "description": "Why: invalid_address (cannot exist), no_mail_server (domain takes no email), previously_bounced (hard-bounced for a Groundmail sender in the last 90 days) or mailbox_not_found",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "email",
      +      "reason"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  11. Changed1 schema field changed
    • addedOutput schema / properties / email / properties / bounce_type
      Added value: +{
      +  "description": "Why it bounced: hard (address cannot receive; suppressed) or block (the receiving server refused the sender for reputation or policy; address not suppressed, safe to retry later). Null if it did not bounce",
      +  "enum": [
      +    "hard",
      +    "block",
      +    null
      +  ],
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  12. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), yet the description adds real behavioral context: it discloses the returned fields, interprets reply codes (250 = accepted, 5xx = refused), and explains the delivered_at minus created_at latency relationship. It does not discuss auth requirements or handling of non-delivered statuses.

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

Conciseness4/5

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

One sentence with the resource and lookup key front-loaded, followed by the payload summary; dense but each clause adds information. The parenthetical reply-code examples are slightly verbose but earn their place.

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 a single-record read tool with full annotation coverage and an output schema, the description is nearly complete, covering lookup key, payload contents, and reply-code meaning. The only gap is explicit guidance on when to pick this over sibling retrieval tools.

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 coverage is 100% and the single id parameter already documents the msg_… format, so the description's '(msg_…)' restates rather than extends the schema. Baseline 3 applies when the schema carries the parameter burden.

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 ('Get a single email by public id (msg_…)') and scopes it to one record, which distinguishes it from list/batch siblings and from the test-email variants by the msg_ prefix.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'single email by public id' implies retrieval of one already-sent message, but there is no explicit when-to-use/when-not statement or named alternative (e.g., get_test_email or get_batch) for the agent to route against.

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.