Skip to main content
Glama

Samuelz® Communications

Neue E-Mail prüfen

preview_email
Read-onlyIdempotent

Read-only exact preview of one explicitly requested new email, without an inbound source. One explicit recipient, optional exact confirmed sender or explicitly requested address on a tenant-bound confirmed sending domain from list_email_senders (default current tenant sender), subject/body and up to three canonical base64 attachments totaling 64 KiB. No URLs or remote attachment downloads. Rechecks current tenant, actor, recipient suppression and existing sender/provider authority. No draft record, send, new identity, scope or sender permission. Use the same requestKey and exact input with prepare_email only after review. A blocked sender must be resolved in the existing connections workflow, never substituted silently.

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": {
      "requestKey": "<requestKey>",
      "to": "<to>",
      "subject": "<subject>",
      "body": "<body>"
    },
    "name": "preview_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesOne explicitly supplied recipient mailbox, without display names, lists, Cc or Bcc. It is normalized to lowercase and checked for suppression.
bodyYesFinal authored body, at most 12000 characters with nonblank content. Preserve the normalized preview text for preparation and human approval; this is not approval evidence.
fromNoOptional exact confirmed sender or explicitly requested address on a confirmed tenant sending domain from list_email_senders; omission retains the current default, never invent an alias.
subjectYesFinal subject of the exact new email, at most 500 characters and no CR/LF/NUL. Surrounding whitespace is normalized; not a generation instruction.
requestKeyYesOne UUID for this explicitly requested new email. Reuse it and identical content in preview_email/prepare_email; another key never authorizes replay of an uncertain send.
attachmentsNoUp to 3 explicitly supplied attachments, unique filenames and at most 65536 decoded bytes combined. Omit for no attachments; preserve bytes and names through preview, preparation and exact owner approval.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / attachments / description
      Added value: +"Up to 3 explicitly supplied attachments, unique filenames and at most 65536 decoded bytes combined. Omit for no attachments; preserve bytes and names through preview, preparation and exact owner approval."
    • addedInput schema / properties / attachments / items / properties / content / description
      Added value: +"Canonical padded base64 of the supplied original bytes, without a data-URL prefix or remote URL. Decoded bytes count toward the shared 64 KiB limit."
    • addedInput schema / properties / attachments / items / properties / contentType / description
      Added value: +"Actual attachment MIME type as type/subtype without parameters, not a guessed file extension."
    • addedInput schema / properties / attachments / items / properties / filename / description
      Added value: +"Exact nonempty attachment filename, at most 180 characters, without CR/LF/NUL and unique within this email; shown to the owner for approval."
    • addedInput schema / properties / body / description
      Added value: +"Final authored body, at most 12000 characters with nonblank content. Preserve the normalized preview text for preparation and human approval; this is not approval evidence."
    • addedInput schema / properties / from / description
      Added value: +"Optional exact confirmed sender or explicitly requested address on a confirmed tenant sending domain from list_email_senders; omission retains the current default, never invent an alias."
    • addedInput schema / properties / requestKey / description
      Added value: +"One UUID for this explicitly requested new email. Reuse it and identical content in preview_email/prepare_email; another key never authorizes replay of an uncertain send."
    • addedInput schema / properties / subject / description
      Added value: +"Final subject of the exact new email, at most 500 characters and no CR/LF/NUL. Surrounding whitespace is normalized; not a generation instruction."
    • addedInput schema / properties / to / description
      Added value: +"One explicitly supplied recipient mailbox, without display names, lists, Cc or Bcc. It is normalized to lowercase and checked for suppression."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: it discloses the revalidation performed at call time (tenant, actor, recipient suppression, existing sender/provider authority), the hard capacity limits (three attachments, 64 KiB combined), and the prohibition on remote attachment fetching. It also routes failure modes (blocked sender) to a named workflow rather than leaving silent substitution possible, which is exactly the kind of behavioral warning annotations cannot express.

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?

Purpose and constraints are front-loaded in the opening clause, and every sentence carries operative rules rather than filler. It is dense to the point of being a run-on, with terms like "explicitly requested" and "exact" repeated across clauses, which costs a little readability for a marginal gain in precision.

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 read-only, six-parameter tool with no output schema, this covers side effects, limits, failure handling, and the handoff to prepare_email. The only real gap is that it never characterizes what the returned preview looks like, which matters less here because the operation is non-mutating and the constraints are already stated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description earns more by adding cross-tool meaning the schema does not: the sender default resolves to the current tenant sender and must come from list_email_senders, and requestKey is the idempotency anchor shared with prepare_email. Those are semantic relationships the per-field schema text only partially conveys.

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 and resource ("Read-only exact preview of one explicitly requested new email") and immediately scopes it against the alternative class with "without an inbound source." An agent can distinguish this from draft_reply or prepare_email without opening either schema.

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

Usage Guidelines4/5

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

Gives a clear sequencing rule ("Use the same requestKey and exact input with prepare_email only after review") and an escalation path ("A blocked sender must be resolved in the existing connections workflow, never substituted silently"). Exclusions are explicit ("No draft record, send, new identity, scope or sender permission"). It stops short of naming a specific alternative for inbound-reply authoring, leaving that inference to the "without an inbound source" phrasing.

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