Skip to main content
Glama

Create email template

lnkdrp_create_email_template
Idempotent

appUrl is this item's page in LinkDrop, for someone signed in. Creates an email template in the workspace: a name, a format (text or html), a subject and a body with replaceable tags. Tags are written {{entity.field}}, or {{entity.field|fallback}} for text used when the value is empty. Built-in tags, filled by LinkDrop for each recipient: 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.. A template's documents are its links (a chip on the template page), each placed in the body by its {{link.}}, as often as wanted: every recipient gets their own tracked link to each, made with that slot's settings and reused on every render. A project slot is one link to all of the project's documents. A document slot opening at a page is written {{link.#7}}: the same link, opening at page 7; page 1 is the plain tag. A template places at least one of its links; {{link.url}} is retired, and a subject or body with it is refused (link_url_retired). {{sender.signature}} is the sender's email signature (formatted, set with lnkdrp_set_email_signature or pulled from Gmail in Outreach settings): it goes in the body only, at most once, with no fallback, and in an html body only where text goes (not inside a tag, a style, a comment, or a link's words); elsewhere the save is refused as validation (details.code html_not_allowed for the html cases). Without it, the signature goes after the body. Either way it carries its "-- " line, when that email or drop includes it (includeSignature; left out, as the sender's setting says: on for include all, off for on_demand). A template's own previews show no signature. Custom tags are {{custom.name}}, each declared in tags with a description of what it stands for, and hold words taken from lnkdrp_render_email's values; a custom tag whose name or description reads as a link (..._link, ..._url, an address) is refused as validation with details.code custom_tag_is_link. The app shows each as {{name}}, without custom. An unknown tag, a template that places none of its links, {{link.url}} in the subject or body, a single-document tag beside two or more links, or an HTML body with scripts, frames, forms or event attributes is refused as validation with details.code (unknown_tag, bad_tag, link_tag_required, link_url_retired, link_tag_ambiguous, html_not_allowed, custom_tag_is_link). An HTML body shows images only from this workspace's uploads: an image is uploaded with lnkdrp_upload_email_asset and placed with the imgTag it returns (lnkdrp_list_email_assets lists those already uploaded). Any other image source (another site, data:) is refused as validation with details.code image_not_an_asset, on save, render and send; a javascript: URL or a is details.code html_not_allowed. The text version shows an image as [alt]. Each image is kept under 10 MB on every plan (big images make emails slow to open and more likely to be clipped or land in spam): an uploaded image over it in the body is swapped for a smaller copy on save. One email shows at most 10 images, 20 MB in all: over that, the save makes the images smaller, the largest first, until the email fits (reason email). imagesResized [{ name, from, to, assetId, note, reason }] lists each one. When it cannot fit, the save is refused as validation with details.code too_many_images or images_too_heavy, a sentence saying the limit and what to change, and details.limits. Returns the template with every tag it uses (entity, description, required, example), unusedTags: declared custom tags the text does not use, and warnings: notes as { code, message } on a template that saved as sent. body_self_centred: the html body's outermost element centres itself with auto side margins (margin: 0 auto) while align is left, so the email still shows centred; the body is saved unchanged. link_unused: one of the template's links is not placed in the body, so that document goes out to no one. no_documents: the saved template has no documents, so nothing renders or sends from it until it has one (links: [{ docId }], placed as {{link.}}). A name already used in the workspace is validation with details.code name_taken. At the workspace's cap on active templates it is validation with details.code templates_limit (archived templates are not counted, so archiving one makes room), and past its new templates in 24 hours, created and duplicated alike, it is rate_limited with details.code templates_daily_limit and details.retryAt; both caps are the plan's (capabilities.outreachLimits in lnkdrp_whoami) and details.limit says the one reached. New email templates are private to their owner (the person this connection acts for) unless visibility is team; this is not a document's visibility (lnkdrp_set_doc_visibility). Names are unique across private and team templates.

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": {
      "name": "<name>",
      "format": "<format>",
      "subject": "<subject>",
      "body": "<body>"
    },
    "name": "lnkdrp_create_email_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesThe body, with tags (up to 50,000 characters); places at least one of the template's documents (links) as {{link.<key>}}. An html body that names no font or size shows in the reader's mail app's own (Gmail: Arial, 13px); a size it names is kept between 10px and 32px.
nameYesThe template's name, unique in the workspace (1-80 characters).
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.
linksNoThe template's documents and projects, each placed in the body by {{link.<key>}} wherever it should appear (as often as wanted); at least one is placed. Every recipient gets their own tracked link to each, made with its settings, when the email is rendered: a drop or email made from the template names no document of its own. With two or more, {{link.password}}, {{document.title}} and {{project.name}} are refused (link_tag_ambiguous). A slot the person placed on the template page without choosing its document yet answers pending: true with docId null; until every placed slot has one, a drop, render or send from the template is refused (link_document_missing): this tool with links giving that key its docId fills it. password is the chip's default link password (the word itself in the answer, webapp#563: a deterrent, not a secret) and passwordRequired says every link from it needs one: a drop's own password (lnkdrp_update_drop linkPassword) or a person's (lnkdrp_update_drop_email linkPassword) wins over the default. On an update the list replaces the template's documents.
formatYestext: a plain-text body (an HTML version is derived from it). html: an HTML body (a text version is derived from it).
subjectYesThe subject line, with tags (one line, up to 200 characters).
visibilityNoprivate: only its owner sees the email template. team: everyone in the workspace sees it. Not a document's visibility (lnkdrp_set_doc_visibility).
descriptionNoWhat the template is for (up to 500 characters).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / links / items / properties / allowRevisionHistory / description
      Previous value: -"Version history for recipients: true lets viewers of every link made from this document open the document's 5 most recent versions and see what changed in each. Takes effect only while the workspace is on Pro: on Free, true fails with plan_limit and nothing is saved, and a link that has it on stops showing versions if the workspace leaves Pro. It is a document share link's setting and nothing else's: set it on a link (lnkdrp_update_share_link, lnkdrp_create_share_link, the default link through lnkdrp_set_share_access) or on an email template's document (links[].allowRevisionHistory, which every link the template makes at Send carries); a project link has no version history, and nothing else carries the setting. Readers see no earlier versions until the document has a second version: the answer's revisionHistory says how many it has. Default false."New value: +"Version history for recipients: true lets viewers of every link made from this document open the document's 5 most recent versions and see what changed in each. Takes effect only while the workspace's plan includes it: elsewhere, true fails with plan_limit and nothing is saved, and a link that has it on stops showing versions once the workspace's plan no longer includes it. It is a document share link's setting and nothing else's: set it on a link (lnkdrp_update_share_link, lnkdrp_create_share_link, the default link through lnkdrp_set_share_access) or on an email template's document (links[].allowRevisionHistory, which every link the template makes at Send carries); a project link has no version history, and nothing else carries the setting. Readers see no earlier versions until the document has a second version: the answer's revisionHistory says how many it has. Default false."
    • changedInput schema / properties / links / items / properties / password / description
      Previous value: -"The chip's default link password (1-128 characters), the one a drop's links take unless the drop or a person sets their own (lnkdrp_update_drop and lnkdrp_update_drop_email linkPassword); null: none; left out: the one this key already has."New value: +"The chip's default link password (1-128 characters), the one a drop's links take unless the drop or a person sets their own (lnkdrp_update_drop and lnkdrp_update_drop_email linkPassword); a deterrent the recipient types from the email, not a secret: a short word, 6 to 12 characters (usavx26), is the norm, not a long random string; null: none; left out: the one this key already has."
  2. Changed1 schema field changed
    • changedInput schema / properties / links / description
      Previous value: -"The template's documents and projects, each placed in the body by {{link.<key>}} wherever it should appear (as often as wanted); at least one is placed. Every recipient gets their own tracked link to each, made with its settings, when the email is rendered: a drop or email made from the template names no document of its own. With two or more, {{link.password}}, {{document.title}} and {{project.name}} are refused (link_tag_ambiguous). A slot the person placed on the template page without choosing its document yet answers pending: true with docId null; until every placed slot has one, a drop, render or send from the template is refused (link_document_missing): this tool with links giving that key its docId fills it. password is the chip's default link password and passwordRequired says every link from it needs one: a drop's own password (lnkdrp_update_drop linkPassword) or a person's (lnkdrp_update_drop_email linkPassword) wins over the default. On an update the list replaces the template's documents."New value: +"The template's documents and projects, each placed in the body by {{link.<key>}} wherever it should appear (as often as wanted); at least one is placed. Every recipient gets their own tracked link to each, made with its settings, when the email is rendered: a drop or email made from the template names no document of its own. With two or more, {{link.password}}, {{document.title}} and {{project.name}} are refused (link_tag_ambiguous). A slot the person placed on the template page without choosing its document yet answers pending: true with docId null; until every placed slot has one, a drop, render or send from the template is refused (link_document_missing): this tool with links giving that key its docId fills it. password is the chip's default link password (the word itself in the answer, webapp#563: a deterrent, not a secret) and passwordRequired says every link from it needs one: a drop's own password (lnkdrp_update_drop linkPassword) or a person's (lnkdrp_update_drop_email linkPassword) wins over the default. On an update the list replaces the template's documents."
  3. Changed3 schema fields changed
    • changedInput schema / properties / links / description
      Previous value: -"The template's documents and projects, each placed in the body by {{link.<key>}} wherever it should appear (as often as wanted); at least one is placed. Every recipient gets their own tracked link to each, made with its settings, when the email is rendered: a drop or email made from the template names no document of its own. With two or more, {{link.password}}, {{document.title}} and {{project.name}} are refused (link_tag_ambiguous). A slot the person placed on the template page without choosing its document yet answers pending: true with docId null; until every placed slot has one, a drop, render or send from the template is refused (link_document_missing): this tool with links giving that key its docId fills it. On an update the list replaces the template's documents."New value: +"The template's documents and projects, each placed in the body by {{link.<key>}} wherever it should appear (as often as wanted); at least one is placed. Every recipient gets their own tracked link to each, made with its settings, when the email is rendered: a drop or email made from the template names no document of its own. With two or more, {{link.password}}, {{document.title}} and {{project.name}} are refused (link_tag_ambiguous). A slot the person placed on the template page without choosing its document yet answers pending: true with docId null; until every placed slot has one, a drop, render or send from the template is refused (link_document_missing): this tool with links giving that key its docId fills it. password is the chip's default link password and passwordRequired says every link from it needs one: a drop's own password (lnkdrp_update_drop linkPassword) or a person's (lnkdrp_update_drop_email linkPassword) wins over the default. On an update the list replaces the template's documents."
    • changedInput schema / properties / links / items / properties / password / description
      Previous value: -"A password every person's link to it asks for, the same for everyone; null: none; left out: the one this key already has."New value: +"The chip's default link password (1-128 characters), the one a drop's links take unless the drop or a person sets their own (lnkdrp_update_drop and lnkdrp_update_drop_email linkPassword); null: none; left out: the one this key already has."
    • addedInput schema / properties / links / items / properties / passwordRequired
      Added value: +{
      +  "description": "Whether every link from this chip needs a password; the password itself is optional, a default for every drop. While true, Send and dry runs from the template are refused while anyone would have none (link_password_required). Left out: the value this key already has (false for a new slot).",
      +  "type": "boolean"
      +}
  4. Changed2 schema fields changed
    • changedInput schema / properties / body / description
      Previous value: -"The body, with tags (up to 50,000 characters); contains {{link.url}} at least once, or, for a template with links, at least one {{link.<key>}}. An html body that names no font or size shows in the reader's mail app's own (Gmail: Arial, 13px); a size it names is kept between 10px and 32px."New value: +"The body, with tags (up to 50,000 characters); places at least one of the template's documents (links) as {{link.<key>}}. An html body that names no font or size shows in the reader's mail app's own (Gmail: Arial, 13px); a size it names is kept between 10px and 32px."
    • changedInput schema / properties / links / description
      Previous value: -"The template's documents and projects, each placed in the body by {{link.<key>}} wherever it should appear (as often as wanted). Every recipient gets their own tracked link to each, made with its settings, when the email is rendered; a send or render then needs no docId or projectId. With one, {{link.url}} also means it; with two or more, {{link.url}}, {{link.password}}, {{document.title}} and {{project.name}} are refused (link_tag_ambiguous). On an update the list replaces the template's documents."New value: +"The template's documents and projects, each placed in the body by {{link.<key>}} wherever it should appear (as often as wanted); at least one is placed. Every recipient gets their own tracked link to each, made with its settings, when the email is rendered: a drop or email made from the template names no document of its own. With two or more, {{link.password}}, {{document.title}} and {{project.name}} are refused (link_tag_ambiguous). A slot the person placed on the template page without choosing its document yet answers pending: true with docId null; until every placed slot has one, a drop, render or send from the template is refused (link_document_missing): this tool with links giving that key its docId fills it. On an update the list replaces the template's documents."
  5. Changed1 schema field changed
    • changedInput schema / properties / links / items / properties / allowRevisionHistory / description
      Previous value: -"Readers may open recent versions (Pro). Default false."New value: +"Version history for recipients: true lets viewers of every link made from this document open the document's 5 most recent versions and see what changed in each. Takes effect only while the workspace is on Pro: on Free, true fails with plan_limit and nothing is saved, and a link that has it on stops showing versions if the workspace leaves Pro. It is a document share link's setting and nothing else's: set it on a link (lnkdrp_update_share_link, lnkdrp_create_share_link, the default link through lnkdrp_set_share_access) or on an email template's document (links[].allowRevisionHistory, which every link the template makes at Send carries); a project link has no version history, and nothing else carries the setting. Readers see no earlier versions until the document has a second version: the answer's revisionHistory says how many it has. Default false."
  6. Changed1 schema field changed
    • changedInput schema / properties / body / description
      Previous value: -"The body, with tags (up to 50,000 characters); contains {{link.url}} at least once, or, for a template with links, at least one {{link.<key>}}."New value: +"The body, with tags (up to 50,000 characters); contains {{link.url}} at least once, or, for a template with links, at least one {{link.<key>}}. An html body that names no font or size shows in the reader's mail app's own (Gmail: Arial, 13px); a size it names is kept between 10px and 32px."
  7. Changed3 schema fields changed
    • changedInput schema / properties / body / description
      Previous value: -"The body, with tags; contains {{link.url}} at least once (up to 50,000 characters)."New value: +"The body, with tags (up to 50,000 characters); contains {{link.url}} at least once, or, for a template with links, at least one {{link.<key>}}."
    • addedInput schema / properties / links
      Added value: +{
      +  "description": "The template's documents and projects, each placed in the body by {{link.<key>}} wherever it should appear (as often as wanted). Every recipient gets their own tracked link to each, made with its settings, when the email is rendered; a send or render then needs no docId or projectId. With one, {{link.url}} also means it; with two or more, {{link.url}}, {{link.password}}, {{document.title}} and {{project.name}} are refused (link_tag_ambiguous). On an update the list replaces the template's documents.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "allowDownload": {
      +        "description": "Readers may download the PDF. Default false.",
      +        "type": "boolean"
      +      },
      +      "allowRevisionHistory": {
      +        "description": "Readers may open recent versions (Pro). Default false.",
      +        "type": "boolean"
      +      },
      +      "contactRole": {
      +        "description": "direct (default): the link is for that person; share: they may pass it on.",
      +        "enum": [
      +          "direct",
      +          "share"
      +        ],
      +        "type": "string"
      +      },
      +      "docId": {
      +        "description": "The document; exactly one of docId or projectId.",
      +        "pattern": "^[a-fA-F0-9]{24}$",
      +        "type": "string"
      +      },
      +      "expiresAfterDays": {
      +        "anyOf": [
      +          {
      +            "maximum": 365,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Days after it is made that each person's link stops working; null or left out: no expiry."
      +      },
      +      "key": {
      +        "description": "The tag that places it in the body: {{link.<key>}}. Not url or password. Left out: made from the document's title.",
      +        "pattern": "^[a-z][a-z0-9_]{0,39}$",
      +        "type": "string"
      +      },
      +      "password": {
      +        "anyOf": [
      +          {
      +            "maxLength": 128,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "A password every person's link to it asks for, the same for everyone; null: none; left out: the one this key already has."
      +      },
      +      "projectId": {
      +        "description": "The project; exactly one of docId or projectId.",
      +        "pattern": "^[a-fA-F0-9]{24}$",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "maxItems": 10,
      +  "type": "array"
      +}
    • addedInput schema / properties / visibility
      Added value: +{
      +  "description": "private: only its owner sees the email template. team: everyone in the workspace sees it. Not a document's visibility (lnkdrp_set_doc_visibility).",
      +  "enum": [
      +    "private",
      +    "team"
      +  ],
      +  "type": "string"
      +}
  8. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only cover safety and idempotency; the description adds far more: the full validation error-code taxonomy (unknown_tag, link_url_retired, html_not_allowed, image_not_an_asset, too_many_images, name_taken, templates_limit), image size/count limits and automatic downscaling behaviour, rate_limited with retryAt, default private visibility, and the three warnings returned on a successful save. That is exactly the behavioral context annotations cannot carry.

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 definition opens with 'appUrl is this item's page in LinkDrop, for someone signed in' even though appUrl is not one of this tool's parameters, which is a distracting misfire at the most important position. What follows is a single multi-thousand-word block mixing tag reference, validation rules, image limits, plan caps and warnings, with long inline example enumerations that bury the core instruction.

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?

For a nine-parameter create tool with no output schema, the description supplies the return shape (template with tag metadata, unusedTags, warnings), the conditions that produce warnings versus refusals, and the operational caps. Nothing needed to call it correctly or interpret its result appears to be missing.

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

Parameters5/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 goes well past the schema: it explains tag syntax with fallbacks ({{entity.field|fallback}}), link slot keying and page anchors ({{link.<key>#7}}), that links are reused per recipient at render, that sender.signature is body-only and refused in html-invalid positions, and that visibility here is not document visibility. These are genuine semantics an agent could not infer from the parameter definitions alone.

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?

The opening states a specific verb and resource: 'Creates an email template in the workspace', and immediately enumerates its constituent parts (name, format, subject, body with replaceable tags). An agent can tell this apart from read-only siblings such as lnkdrp_get_email_template without opening the schema.

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?

Usage is implied rather than stated: the description never says when to reach for lnkdrp_update_email_template or lnkdrp_duplicate_email_template instead. It does route sub-tasks to alternatives (lnkdrp_upload_email_asset for images, lnkdrp_list_email_assets for existing assets, lnkdrp_set_email_signature for signatures, lnkdrp_whoami for plan caps), and it explains that archiving frees room at the template cap, so there is meaningful contextual guidance even though the create-vs-update decision is left implicit.

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