Skip to main content
Glama

Get store marketing emails

get_store_emails
Read-only

Marketing/newsletter emails Undercart has captured from a store: subject, sender, snippet, extracted discount codes, and received date, newest first, plus the store's emails-per-week cadence. Each email's full body is available from get_store_email by id. For a store Undercart hasn't researched yet (or a Shopify store it doesn't track, which is added) this starts that research without waiting: researching subscribes Undercart to the store's newsletter, so emails are captured from then on. Metered like get_store (once per store per month).

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": "<domain>"
    },
    "name": "get_store_emails"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax emails to return (default 20, max 100).
domainYesStore domain, e.g. "allbirds.com". Normalized automatically.

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?

Adds substantial context beyond the annotations: newest-first ordering, newline the subscription side effect (researching subscribes Undercart to the store's newsletter, so capture begins from then on) and the metering rule (once per store per month, like get_store). The side effect is arguably mutation-adjacent, so it warrants 3 rather than 4-5; the annotations' readOnlyHint/openWorldHint framing means the description must carry the nuance and it does.

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?

Front-loads the return payload, then the alternative, then the research subscription behavior, then metering—a sensible order for an agent scanning for fit. The research/subscription clause is long and dense, but no sentence is filler.

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?

No output schema exists, so the description must describe return shape; it does (fields, ordering, cadence). It also covers metering cost, the sibling for full bodies, and the non-obvious side effect of subscribing to a newsletter—enough for an agent to decide and call correctly.

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%, so both parameters (domain, limit) are already documented in the input schema, including the default 20 and max 100. The description repeats nothing new about parameters and adds no syntax or format detail beyond what the schema says.

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+resource (marketing/newsletter emails captured from a store) and enumerates exactly what comes back: subject, sender, snippet, discount codes, received date, ordering, plus emails-per-week cadence. It is immediately distinguishable from get_store_email, which is named as the full-body companion.

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?

Gives explicit routing: use get_store_email for an individual email's full body, and call this one even for stores not yet researched (or untracked Shopify stores), which triggers research immediately. That is a concrete when-to-use condition plus a named alternative, not an implied one.

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.

Resources