Skip to main content
Glama

Preview email template

lnkdrp_preview_email_template
Read-onlyIdempotent

Shows how a template reads, with no recipient made: a saved template (templateId) or unsaved template fields (format, subject, body and tags). Built-in tags: contact.firstName: The first word of the contact's name. (e.g. Ken); contact.name: The contact's name: the name the team gave them, else the name they gave. (e.g. Ken Lee); contact.lastName: Everything after the first word of the contact's name. (e.g. Lee); contact.email: The contact's email address. (e.g. ken@example.com); contact.company: The domain of the contact's address; empty for a webmail address such as gmail.com. (e.g. acme.com); contact.note: The team's notes on the contact, as written; they go into the email exactly as they are. Notes over 2,000 characters read as empty. (e.g. Met at the October demo day.); contact.tags: The contact's tags, comma-separated. (e.g. Investor, Seed); contact.firstSeen: When LinkDrop first saw the contact, e.g. October 22, 2026. (e.g. October 22, 2026); contact.lastSeen: When the contact was last seen, e.g. October 22, 2026. (e.g. October 22, 2026); contact.visits: How many times the contact has viewed, as a number. (e.g. 3); document.title: The document's title (document emails only). (e.g. Q3 investor update); project.name: The project's name (project emails only). (e.g. Series A data room); sender.name: The name of the member the email is from. (e.g. Chris); sender.firstName: The first word of the sender's name. (e.g. Chris); sender.email: The sender's LinkDrop account email (not necessarily the Gmail address the email goes out from). (e.g. chris@example.com); workspace.name: The workspace's name. (e.g. LinkDrop); sender.signature: The sender's signature from Outreach settings; empty when they have none or this email leaves it out ("Include my signature"). Without this tag the signature goes after the body.. mode tags (the default) shows each tag as written ({{contact.firstName}}) unless values gives it one; mode examples shows each tag's example (the template's own for a custom tag, else the built-in one, else the tag as written). contactId (with templateId) shows the saved template as that contact's email: their details, the sender's and the workspace's, each {{link.}} as a placeholder (their own link is made when the email is rendered) and {{link.password}} as [password]; {{document.title}} and {{project.name}} stay as written, since the document or project an email shares is picked when it is rendered (not in missingTags or missing), and a custom tag with no value stays as written and is listed in missing (values gives it one); a contact this person cannot see is contact_not_found. dryRun true adds the dry-run band and the [Dry run] subject marker. Dry runs are not available on every plan: where the workspace's plan does not include them it answers plan_limit. They are on Pro and up; on Free the refusal carries details.upgradeUrl. The sender's email signature is added to each email when it is made, not to the template: a template's preview shows none (signature none, the default; mode tags shows {{sender.signature}} only where the template places it, and examples and contactId leave that tag empty). signature viewer ends it with the signature of the person this connection acts for, at the tag or after the body under a "-- " line, as their email with includeSignature true carries it. Nothing is stored, no link is made and it costs nothing. Returns subject, text, html, missingTags (required tags with no value), usedTags, errors: what saving this template would refuse, as { code, message } (unsaved fields' link-like custom tag is custom_tag_is_link), warnings: what saving it would note without refusing (body_self_centred), missing (for a contact: the tags that come out empty or as their fallback, { key, reason }), contact (the contact previewed as; name and email wrapped as untrusted content) and dryRun. html carries the template's align. A preview page with an address of its own comes from lnkdrp_render_email, which renders for a real contact and may create that contact's link.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lnkdrp_preview_email_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoUnsaved template fields: the body, with tags.
modeNotags (the default): each tag as written; examples: each tag's example.
tagsNoTag declarations: every {{custom.x}} used, with its description; a built-in may be listed to override its description or required.
alignNoWhere an html email sits in the reader's window. left (the default): nothing is added around the body, so it shows flush left. center: the body is placed in a centred column at most 600px wide. The text version is unaffected.
linksNoUnsaved template fields: the documents the body places with {{link.<key>}}, each drawn by its title.
dryRunNotrue: with the dry-run band and the [Dry run] subject marker (where the workspace's plan includes it).
formatNotext: a plain-text body (an HTML version is derived from it). html: an HTML body (a text version is derived from it).
valuesNoValues to show for tags, by key: { "custom.round": "Series A", "contact.firstName": "Ken" }. Up to 30 keys; custom tags only with contactId.
draftIdNoA draft of the saved template (templateId) to preview.
subjectNoUnsaved template fields: the subject line, with tags.
contactIdNoPreview a saved template (templateId) as this contact's email, from lnkdrp_list_contacts.
signatureNonone (the default): no signature, the template as written; viewer: end with this person's own email signature. mode tags shows {{sender.signature}} itself where the template places it.
templateIdNoA saved template to preview; or give format, subject and body instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / dryRun / description
      Previous value: -"true: with the dry-run band and the [Dry run] subject marker (Pro and up)."New value: +"true: with the dry-run band and the [Dry run] subject marker (where the workspace's plan includes it)."
  2. Changed1 schema field changed
    • changedInput schema / properties / values / additionalProperties / maxLength
      Previous value: -2000New value: +10000
  3. Changed1 schema field changed
    • addedInput schema / properties / signature
      Added value: +{
      +  "description": "none (the default): no signature, the template as written; viewer: end with this person's own email signature. mode tags shows {{sender.signature}} itself where the template places it.",
      +  "enum": [
      +    "viewer",
      +    "none"
      +  ],
      +  "type": "string"
      +}
  4. Changed8 schema fields changed
    • changedInput schema / properties / body / description
      Previous value: -"A draft's body, with tags."New value: +"Unsaved template fields: the body, with tags."
    • addedInput schema / properties / contactId
      Added value: +{
      +  "description": "Preview a saved template (templateId) as this contact's email, from lnkdrp_list_contacts.",
      +  "pattern": "^[a-fA-F0-9]{24}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / draftId
      Added value: +{
      +  "description": "A draft of the saved template (templateId) to preview.",
      +  "pattern": "^[a-fA-F0-9]{24}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / dryRun
      Added value: +{
      +  "description": "true: with the dry-run band and the [Dry run] subject marker (Pro and up).",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / links
      Added value: +{
      +  "description": "Unsaved template fields: the documents the body places with {{link.<key>}}, each drawn by its title.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "docId": {
      +        "pattern": "^[a-fA-F0-9]{24}$",
      +        "type": "string"
      +      },
      +      "key": {
      +        "maxLength": 40,
      +        "type": "string"
      +      },
      +      "projectId": {
      +        "pattern": "^[a-fA-F0-9]{24}$",
      +        "type": "string"
      +      },
      +      "title": {
      +        "anyOf": [
      +          {
      +            "maxLength": 300,
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "key"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 10,
      +  "type": "array"
      +}
    • addedInput schema / properties / mode
      Added value: +{
      +  "description": "tags (the default): each tag as written; examples: each tag's example.",
      +  "enum": [
      +    "tags",
      +    "examples"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / subject / description
      Previous value: -"A draft's subject line, with tags."New value: +"Unsaved template fields: the subject line, with tags."
    • changedInput schema / properties / values / description
      Previous value: -"Values to show for tags, by key: { \"custom.round\": \"Series A\", \"contact.firstName\": \"Ken\" }. Up to 30 keys."New value: +"Values to show for tags, by key: { \"custom.round\": \"Series A\", \"contact.firstName\": \"Ken\" }. Up to 30 keys; custom tags only with contactId."
  5. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover read-only/non-destructive/idempotent, but the description adds material behavior beyond that: "Nothing is stored, no link is made and it costs nothing," plan limits that return plan_limit, contact_not_found for invisible contacts, and the distinction between errors (would refuse) and warnings (would note but allow). That is exactly the extra context 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.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but roughly half the text is a full built-in tag catalog with examples that duplicates what lnkdrp_list_email_tags exists for, plus long run-on clauses (the contactId, dryRun and signature paragraphs each cram three or four conditions into one sentence). Much of it earns no selection value for choosing the tool.

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?

With 13 optional parameters, nested tag/link objects and no output schema, a complete definition must cover return shape and edge behavior - and this one does: subject, text, html, missingTags, usedTags, errors, warnings, missing, contact, dryRun, plus the align-to-html note. An agent has everything needed to call it and interpret the result.

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 would be 3, but the description adds real meaning: mode tags vs examples rendering, how values overrides a tag, how contactId turns {{link.<key>}} into placeholders and pushes custom tags without values into missing, and how signature viewer/none interacts with {{sender.signature}}. The main gap is that the parameters are explained deep inside a wall of prose rather than near their names.

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?

Opens with a specific verb and resource ("Shows how a template reads, with no recipient made") and immediately enumerates the two input routes: a saved template via templateId or unsaved fields via format/subject/body/tags. The closing sentence names the sibling it is not (lnkdrp_render_email) and why, so an agent can discriminate without opening schemas.

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?

It is explicit about the preview-vs-render split at the end: "A preview page with an address of its own comes from lnkdrp_render_email, which renders for a real contact and may create that contact's link." It also flags plan gating for dryRun (plan_limit, details.upgradeUrl on Free). The when-to-use for templateId vs unsaved fields is only implied by the field lists rather than stated as a decision rule.

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