Skip to main content
Glama

publish_email_draft

Destructive

Publish target.draftId and remove that draft. Execute only when the user requests publication. Does not send email.

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": {
      "target": "<target>"
    },
    "name": "publish_email_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceNoSource for save. Defaults to working; live saves the currently published content.
targetYesTarget email resource; kind must be email.
versionNoSaved version name for save or restore. Save requires a new name; live and draft: names are reserved.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / target / properties / designId
      Added value: +{
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / target / properties / kind / enum
      Previous value: -[
      -  "page",
      -  "email"
      -]New value: +[
      +  "page",
      +  "email",
      +  "wallet",
      +  "apple-wallet",
      +  "google-wallet"
      +]
  2. Changed3 schema fields changed
    • removedInput schema / properties / expectedRevision
      Removed value: -{
      -  "description": "Latest snapshot revision; required for every action except list.",
      -  "type": "integer"
      -}
    • removedInput schema / properties / sourceHash
      Removed value: -{
      -  "description": "Latest working draft sourceHash; required for publish.",
      -  "type": "string"
      -}
    • removedInput schema / properties / target / properties / organizationId
      Removed value: -{
      -  "minLength": 1,
      -  "type": "string"
      -}
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructive=true and readOnly=false, but the description adds the crucial specifics: the draft is removed as a side effect, and publishing does not transmit email. The user-consent gate adds authorization context the annotations cannot express. Remaining gaps are irreversibility/confirmation and whether a published URL is returned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

Three short sentences, verb and resource front-loaded, with the destructive side effect and the safety gate following immediately. No filler or restated title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, solitary mutation with full schema documentation and no output schema, the description covers the effect, the side effect, the consent requirement, and the key non-behavior (no send). It could additionally state what the caller gets back and whether the removal is reversible.

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 baseline is 3, but the description earns extra credit by pinning the call to target.draftId inside a polymorphic target object that also accepts pageId, emailId, eventId, designId, and pageSlug. That disambiguation is real value beyond the schema. It says nothing about source or version, which is why it is not a 5.

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?

"Publish target.draftId and remove that draft" gives a specific verb plus the exact nested field it operates on, and "Does not send email" preempts the most likely misreading. It clearly separates itself from create_email_draft and discard_email_draft by naming publication as the effect, though it never names those siblings as alternatives.

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?

"Execute only when the user requests publication" is an explicit gating condition that tells the agent when to act, which is valuable for a publishing action. It stops short of naming the alternative path (discard without publishing), so the when-not-to-use case 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.