Skip to main content
Glama

Confita

Write a newsletter

draft_newsletter
Idempotent

For shop owners: start a newsletter (no newsletter) or change one with a list of edits, applied in order, all or none. It is built from the site's blocks and style; get_reference "blocks" lists what an email can hold and its edits. send_test emails it to the seller's own Gmail. It never sends to subscribers: send_newsletter asks for that.

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": {
      "request_id": "<request_id>"
    },
    "name": "draft_newsletter"
  }
}

Input Schema

NameRequiredDescriptionDefault
editsNoApplied in order, all or none.
startNoA starter id, only when starting one.
revisionNoRequired with `newsletter`: its `revision` as last read; if it changed since, no edit is saved.
send_testNoEmail it to the seller's own Gmail address.
newsletterNoIts id; omit to start one.
request_idYesUnique per call; the same id again returns the first result.

Output Schema

NameRequiredDescriptionDefault
nextNo
testNo
addedNo
errorNo
notesNo
noticeNo
changedNo
choicesNo
outcomeNo
size_kbNo
examplesNo
revisionNo
timezoneNo
warningsNo
newsletterNo
preview_urlNo
unscheduledNo
confirmationNo
contrast_suggestionsNo
contrast_suggestions_moreNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=true. The description adds real context beyond that — edits apply in order and all-or-none, the draft is derived from the site's blocks and style, send_test only mails the seller's own Gmail. However, it does not warn that `remove`/`move` edits change existing content or explain what a revision conflict returns, which matters for a mutating tool flagged non-destructive.

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?

Four tight sentences, front-loaded with the actor (shop owners) and the create-vs-edit fork, then the build source, then the never-sends-to-subscribers caveat. Dense but every sentence carries information; the backtick-heavy phrasing costs a little readability.

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?

An output schema exists, so return values need no explanation, and the description covers both entry modes, the all-or-none edit contract, the block vocabulary pointer, and the explicit boundary that nothing reaches subscribers. The only gap is guidance on recovering from a stale `revision` or a failed edit batch.

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

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all six parameters including `newsletter`, `start`, `revision`, `send_test` and `request_id` are already documented in structured fields. The description restates omit-`newsletter`-to-start and send_test's destination without adding syntax or ordering detail beyond the schema, so baseline 3 applies.

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?

States a specific verb+resource and precisely splits the two modes: start one when `newsletter` is absent, change one otherwise. It explicitly names send_newsletter as the tool that actually mails subscribers, so an agent can separate this from its closest sibling without opening either schema.

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?

Gives explicit when-to-use routing (draft/edit vs send_newsletter) and points the agent to get_reference "blocks" for the edit vocabulary, which is the key prerequisite. It does not mention draft_site_change, whose edit semantics it borrows, or get_newsletter for reading an existing draft, so one sibling relationship 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