Skip to main content
Glama

Publish an email template draft

lnkdrp_publish_email_template_draft
Idempotent

Publishes an email template draft as the template's next version: emails made from then on use it, emails already made keep their text, and the version that was live stays in the history (lnkdrp_list_email_template_versions; lnkdrp_restore_email_template_version can make it current again). Only a publisher may: the template's owner, workspace owners and admins, its chosen publishers, or every member when it is set to everyone; anyone else is forbidden with details.code publisher_required, publishers and reviewUrl (on Free, paused and upgradeUrl). A draft the template moved past (stale) is refused validation with details.code stale_draft, liveVersion and versionsNotIncluded; replaceLive: true publishes it over the live version anyway. A draft that removes a contact.* or custom.* tag the live template uses, or keeps under 40% of its body's words, is refused with details.code template_overwrite (removedTags, kept, dropCount) until the person agrees and confirmOverwrite: true is sent; when LinkDrop asks the person to confirm the publish itself, that yes counts. An image deleted since is validation with details.code image_not_an_asset; withoutImages: true publishes it without those images. When emails made from the template were sent, an active campaign uses it, or replaceLive is given, LinkDrop asks the person to confirm first. draftId left out: this person's own open draft, else the only one. Returns the template, version, the draft and versionsNotIncluded.

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": {
      "templateId": "<templateId>"
    },
    "name": "lnkdrp_publish_email_template_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoThe person's yes to the preview LinkDrop returned for this same action.
draftIdNoThe draft's id, from lnkdrp_list_drafts (kind template) or an update's draft.id. Left out: this person's own open draft, else the only one.
templateIdYesEmail template id (24 hex chars), from lnkdrp_list_email_templates.
alwaysAllowNoRecords the person's own standing permission for this tool on this connection.
replaceLiveNoPublish a stale draft over the live version anyway.
withoutImagesNoPublish it without the images whose upload was deleted.
confirmOverwriteNotrue: the person agreed to a change that removes the template's person or custom tags or replaces most of its words (template_overwrite).
confirmationTokenNoThe confirmationToken from that preview.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / confirmOverwrite
      Added value: +{
      +  "description": "true: the person agreed to a change that removes the template's person or custom tags or replaces most of its words (template_overwrite).",
      +  "type": "boolean"
      +}
  2. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, and openWorldHint=false. The description adds substantial context beyond that: the concrete side effects on already-sent emails, the retained live version, the permission model (owner, workspace owners/admins, chosen publishers, everyone-mode), and four distinct refusal codes (publisher_required, stale_draft, template_overwrite, image_not_an_asset) with their accompanying detail fields. The description's description of guarded overwrite behavior is consistent with destructiveHint=false because the destructive paths require explicit confirmation flags.

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?

It is front-loaded with the effect of publishing before any of the exception handling, and essentially every clause carries operational information. The cost is a single unbroken block of dense text; splitting the permission and refusal paths into separate sentences or sections would make it easier to scan without cutting content.

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 8 parameters, one required field, no output schema, and a multi-path confirmation flow, this definition covers what an agent needs: who may call it, what each flag unlocks, what the refusal payloads look like, and what the return contains (template, version, draft, versionsNotIncluded). Nothing material is deferred to inference.

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 would be 3, but the prose adds meaning the schema does not carry: it ties replaceLive, withoutImages, and confirmOverwrite to the specific refusal code each one overrides, explains that a confirmation given for the publish preview also satisfies confirmOverwrite, and spells out the draftId fallback chain (own open draft, then the only one). That is real semantic value on top of the field descriptions.

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 ("Publishes an email template draft") and immediately defines the effect: future emails use it, existing emails keep their text, and the previously live version is retained in history. That distinguishes it from lnkdrp_publish_draft, lnkdrp_discard_email_template_draft, and the version-list siblings without the agent needing to open 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?

It names the exact alternatives and the conditions that select them: stale drafts need replaceLive: true, removed tags or gutted bodies need confirmOverwrite: true, deleted images need withoutImages: true, and it points to lnkdrp_list_email_template_versions and lnkdrp_restore_email_template_version for the history path. It also states who is permitted and what happens to unauthorized callers, so the agent knows when to attempt the call at all.

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