Skip to main content
Glama

List emails

list_emails
Read-onlyIdempotent

List recent emails sent from this account. Test emails (test keys, simulator addresses) have test: true.

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": "list_emails"
  }
}

Input Schema

NameRequiredDescriptionDefault
testNotrue: only test emails; false: only live ones. Omit for both
limitNoPage size (1–100)
cursorNoOpaque cursor for the next page
streamNoOnly emails sent on this mail stream
tenantNoOnly emails sent as this tenant. The tenant's external id (your id for that customer) or its Groundmail id

Output Schema

NameRequiredDescriptionDefault
emailsYesEmails on this page, newest first
has_moreNoTrue when another page of results is available
next_cursorNoCursor to pass as `cursor` to fetch the next page; null on the last page

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / emails / items / 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 / emails / items / 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 / emails / items / 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 / emails / items / 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 / emails / items / 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 / emails / items / 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 / emails / items / 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 / emails / items / 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. Changed2 schema fields changed
    • addedInput schema / properties / stream
      Added value: +{
      +  "description": "Only emails sent on this mail stream",
      +  "enum": [
      +    "transactional",
      +    "product",
      +    "newsletter"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / emails / items / properties / stream
      Added value: +{
      +  "description": "Mail stream it went out on: transactional, product or newsletter (each sends from its own IPs)",
      +  "type": "string"
      +}
  8. Changed2 schema fields changed
    • addedInput schema / properties / tenant
      Added value: +{
      +  "description": "Only emails sent as this tenant. The tenant's external id (your id for that customer) or its Groundmail id",
      +  "type": "string"
      +}
    • addedOutput schema / properties / emails / items / 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. Changed2 schema fields changed
    • addedInput schema / properties / test
      Added value: +{
      +  "description": "true: only test emails; false: only live ones. Omit for both",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / emails / items / 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 / emails / items / 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 / emails / items / 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

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered without description help. The description adds one genuinely non-structured fact: test emails (test keys, simulator addresses) are returned with test: true, which helps the agent interpret results. It does not define what "recent" means or describe ordering and paging behavior beyond what the cursor field implies.

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?

Two short sentences, front-loaded with the core action and scope, with no filler. The parenthetical about test keys and simulator addresses is compact and earns its place by clarifying the test flag.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists and the input schema is fully documented, so the description needn't explain return shapes. However, it leaves "recent" undefined (no time window or default ordering), which matters for a paginated listing tool with an optional limit and cursor.

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%, so all five parameters including the enum stream values and tenant id forms are already documented, giving a baseline of 3. The description contributes meaning only for the test flag by explaining what marks an email as a test email; it says nothing extra about limit, cursor, stream or tenant beyond the schema.

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 description states a specific verb and resource ("List recent emails") and scopes it with "sent from this account," which implicitly separates it from received-mail listing. It stops short of explicitly naming any sibling tool, so the differentiation is inferable rather than spelled out.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no routing to alternatives such as list_test_emails or list_received_emails. The only implied usage cue is the note that test emails carry test: true, which hints at filtering but does not say when to prefer this tool over a dedicated test-email lister.

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.