Skip to main content
Glama

Get email HTML

get_email_html
Read-onlyIdempotent

The original HTML of one email from search_emails (tables, font fallbacks, dark mode included). Adapt it to the user's brand instead of writing email HTML from scratch. Pro, or this week's free flows.

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": {
      "emailId": "<emailId>"
    },
    "name": "get_email_html"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailIdYesemailId from search_emails

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive/non-open-world, so the bar is lower, and the description still adds real behavioral content: the payload is the original authored HTML including tables, font fallbacks, and dark mode, which tells the agent to expect rich, likely large markup. The 'Pro, or this week's free flows' phrase hints at entitlement gating but is too cryptic to be actionable.

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?

Three short, front-loaded sentences with no filler paragraphs. Mild waste in the persuasive clause 'instead of writing email HTML from scratch' and in the opaque plan-tier sentence, which reads as marketing rather than operational information.

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?

With no output schema, the description carries the burden of describing the return value; it names the content traits but never says how the HTML arrives (raw string field, wrapping, size/truncation limits), which matters for a tool whose entire output is a large markup document. Entitlement and failure modes for stale emailIds are also left unaddressed.

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?

One parameter with 100% schema coverage, so the schema already explains emailId. The description's only reference is 'from search_emails', which duplicates the schema's own wording ('emailId from search_emails') and adds no new meaning such as error behavior for invalid or deleted IDs.

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 concrete resource and provenance: 'The original HTML of one email from search_emails', with the fidelity traits (tables, font fallbacks, dark mode) that distinguish it from a plain text/body fetch. It is immediately separable from siblings like search_emails, get_flow, or get_screen.

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?

It gives a downstream motivation ('adapt it to the user's brand instead of writing email HTML from scratch') and implies the prerequisite that an emailId comes from search_emails. It never states when not to use it, nor compares it to any alternative for retrieving email content, and the closing 'Pro, or this week's free flows' is ambiguous as guidance.

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