Skip to main content
Glama

show_email_preview

Read-only

Show the user an email preview that automatically follows saved changes. Call after completing email changes, or when asked to see an email. Pass the edited target including draftId. Uses compiled HTML with sample inputs. Does not edit, publish or send. Use screenshot_email separately for visual inspection.

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": {
      "target": "<target>"
    },
    "name": "show_email_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYesTarget email to display; include draftId to preview the draft being edited.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / target / properties / designId
      Added value: +{
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / target / properties / kind / enum
      Previous value: -[
      -  "page",
      -  "email"
      -]New value: +[
      +  "page",
      +  "email",
      +  "wallet",
      +  "apple-wallet",
      +  "google-wallet"
      +]
  2. Changed1 schema field changed
    • removedInput schema / properties / target / properties / organizationId
      Removed value: -{
      -  "minLength": 1,
      -  "type": "string"
      -}
  3. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so the safety profile is covered. The description still adds real value by noting the preview follows saved changes, uses compiled HTML with sample inputs, and performs no edit/publish/send. It stops short of saying what unsaved edits do or whether the preview returns data versus rendering UI.

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?

Short and front-loaded with purpose, then usage, then mechanics, then exclusions. Slightly staccato phrasing ("Uses compiled HTML with sample inputs") but every sentence carries information.

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-parameter, no-output-schema tool with a nested target, the description covers triggers, mechanics, and exclusions adequately. A little more on what the returned preview result contains (versus pure UI rendering) would make it complete.

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 nested target object's own description already explains including draftId to preview the draft being edited. The description's "Pass the edited target including draftId" restates rather than extends that, adding little beyond the schema baseline.

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 verb and resource ("Show the user an email preview") and immediately scopes it against the closest sibling by naming screenshot_email for visual inspection. An agent can distinguish it from the many other email tools without opening any schema.

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 triggers ("Call after completing email changes, or when asked to see an email") and an explicit alternative ("Use screenshot_email separately for visual inspection"). Both when-to-use and when-to-use-something-else are covered.

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.