Skip to main content
Glama

One email batch

get_email_batch
Read-onlyIdempotent

One email batch whole: its state and why it is held, its figures, each email of its sequence with its own figures (day, sent, reached, replies, opt-outs, complaints, waiting), the yield per template (sent, reached, bounced, opened where tracked, replies, interested, unsubscribes, complaints), and its rows with each one's fate, 50 a page. list_email_replies with its batch_id gives who wrote back.

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": {
      "batch_id": "<batch_id>"
    },
    "name": "get_email_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
cursorNoThe cursor a previous page of this tool gave, to read the next page. Leave it out for the first.
batch_idYesThe batch.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the description only needs to add context. It does: it discloses the shape of the response (per-email, per-template, per-row breakdowns) and the '50 a page' pagination behavior, which an agent cannot infer from the annotations.

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?

It is a single dense sentence with the resource stated first and all remaining clauses describing return content, which is legitimate given there is no output schema. The parenthetical metric lists are long but each item conveys real return-value information, so little is wasted.

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?

With no output schema, the description must carry the return-value burden, and it does so thoroughly across batch state, per-email metrics, template yield, and row outcomes. The main omission is what a 'row' represents and how 'fate' is encoded, but overall an agent knows what it will receive.

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 batch_id and cursor are already documented by the schema. The description only adds the '50 a page' chunk size, which implicitly explains what the cursor pages over; that is a small increment beyond the schema baseline.

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 makes clear this returns a single email batch in full ('One email batch whole') and enumerates the specific content: state and hold reason, figures, per-email sequence metrics, template yield, and paginated rows. The resource is precisely scoped by batch_id, distinguishing it from the list-style siblings, though it never states an explicit retrieval verb and does not name list_email_batches/search_emails as contrasts.

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?

There is one useful routing hint: 'list_email_replies with its batch_id gives who wrote back,' which tells the agent when to switch tools for reply authors. However, there is no explicit statement of when to use this versus list_email_batches or search_emails, and no prerequisites or exclusions.

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