Skip to main content
Glama

Read an email template draft

lnkdrp_get_email_template_draft
Read-onlyIdempotent

Reads one email template draft: who added it (addedBy, owner, agent), its state, draftVersion (send it back to update the same draft), baseVersion (the live version it was based on), liveVersion, stale (the template moved past its base), changedFields, expiresAt (14 days after its last save), canPublish, canDiscard and reviewUrl (the app's review page). fieldChanges lists what it changes against its base (name, description, format, align, subject, tags) and readText the subject and body as a reader sees them with [-removed-] and {+added+} markers; when stale, againstLive is the same against the live version. publishers says who may publish it; sentCount and activeCampaigns are the template's real sends and the active campaigns that use it. An ended draft keeps its record but not its text. draftId left out: this person's own open draft, else the only one; several open is validation with details.code draft_ambiguous listing them. A template this person may not see is not_found.

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, non-destructive behavior, and the description adds substantial context beyond them: returned fields, expiry after 14 days, stale/base/live version semantics, diff markers, ended-draft behavior, permission-based not_found, and ambiguous-draft validation details. No contradiction with annotations is present.

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?

The description is front-loaded with the core read action, and each sentence carries useful return-value or edge-case information. It is a dense single paragraph, but the length is largely justified because there is no output schema to explain these fields.

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 no output schema, the description fully carries the burden of explaining what comes back: version fields, changed fields, diff markers, publishers, sent counts, campaign usage, draft expiry, ended-draft behavior, and error cases. It is complete enough for an agent to call and interpret this tool correctly.

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, and both parameters are already documented in the schema. The description still adds meaning beyond the schema by explaining the draft_ambiguous validation behavior and the not_found outcome when the caller may not see a template.

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 description opens with a specific verb and resource: "Reads one email template draft." It immediately itemizes the draft-specific data returned, making clear this is a single-draft inspection tool rather than a list, update, publish, or live-template read.

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 by the operation and by naming lnkdrp_list_drafts and an update response as sources for draftId. However, it does not explicitly contrast this with lnkdrp_get_email_template, lnkdrp_list_drafts, or the publish/discard draft tools, so the agent must infer when this specific read is preferred.

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