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. 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.

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.
confirmationTokenNoThe confirmationToken from that preview.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare non-read-only, idempotent, non-destructive, closed-world; the description goes much further by disclosing exactly what is preserved (existing email text, prior live version in history), the permission model with concrete error codes (publisher_required, stale_draft, image_not_an_asset), the two override flags, and the pre-call confirmation trigger. This is the rare case where the prose carries real behavioral weight beyond the structured hints, and it is consistent with destructiveHint=false and idempotentHint=true.

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?

One dense paragraph that front-loads the state change before permissions, edge cases, and the confirmation trigger — a sensible ordering for a mutating tool. Some redundancy remains, notably repeating the draftId fallback that the schema already documents, and the error-code enumeration makes it heavy to scan.

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?

No output schema exists, and the description compensates by naming the return payload (the template, version, the draft, versionsNotIncluded). Combined with the permission model, error codes, and confirmation trigger, an agent has everything needed to invoke this correctly and interpret refusals.

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 a 3 is the floor. The description adds genuine semantic links the schema lacks: that confirm/confirmationToken/alwaysAllow belong to the confirmation flow triggered by prior sends, an active campaign, or replaceLive, and that stale drafts and deleted images are recoverable via replaceLive/withoutImages rather than being hard failures. It does restate the draftId default already given in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource plus the exact semantics of the state change: the draft becomes the template's next version, future emails use it, existing emails keep their text, and the live version is retained in history. That is far beyond a name restatement. The one gap is that it never names the near-identical sibling lnkdrp_publish_draft, so an agent must infer that this is the email-template-specific variant.

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?

Clearly states who may call it (owner, workspace owners/admins, chosen publishers, everyone-mode members), names the alternative tools lnkdrp_list_email_template_versions and lnkdrp_restore_email_template_version for the rollback path, and explains the draftId-omitted default resolution. It stops short of explicitly contrasting with lnkdrp_publish_draft or lnkdrp_discard_email_template_draft, which are the most likely wrong picks.

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