Master key onlyGenerated from lib/mcp.ts

dispatch_create_template

Creates an edition template: the shared shape for a whole newsletter network. City editions inherit its sections, schedule, sender, voice, and sponsor slots.

Create an edition template: the shared shape for a newsletter network (sections, send cadence and local send time, sender identity, voice rules, sponsor slot definitions). City publications inherit it via dispatch_create_publication_from_template. Master key only.

  • Use it when: When starting a network of city editions from one shared design.
  • Don't use it when: Do not use it for a single standalone publication. That is dispatch_create_publication.

Link and endpoint

Page link

https://dispatch.nshipyard.com/support/mcp/dispatch_create_template

Endpoint

POST https://dispatch.nshipyard.com/api/mcp

Call it with method tools/call and name dispatch_create_template.

Parameters

NameTypeRequiredDescription
namestringRequiredTemplate name, e.g. 'Daybreak city edition'
descriptionstringOptionalWhat this template is for
sectionsarrayOptionalFixed edition sections, e.g. [{name: 'This week', prompt: '...'}]
cadencestringOptionalSend rhythm, e.g. 'daily' (default 'daily')
send_time_localstringOptionalLocal send moment as HH:MM, e.g. '06:00'
timezonestringOptionalIANA timezone for the send moment, e.g. 'America/Toronto'
from_namestringRequiredSender name shown on emails
reply_to_emailstringOptionalReply-to address
accent_colorstringOptionalTheme color as hex, e.g. #BE1010
taglinestringOptionalOne-line pitch inherited by child editions
voice_rulesstringOptionalStyle/voice rules agents follow when composing issues
slotsarrayOptionalSponsor slot definitions inherited by every child edition

sections items:

namestringRequired—
promptstringRequired—

slots items:

keystringRequiredStable key, e.g. 'top-banner'
positionstringRequired'top', 'mid', or 'bottom'
sizestringOptionalSize hint, e.g. '600x140'
price_centsintegerOptionalDefault price in cents
currencystringOptionalISO currency, default USD

Returns

template.id string
The template id.
template.cadence string
How often editions send.
template.send_time_local string
Local send time, HH:MM.
template.slots_defined number
How many sponsor slots were defined.

Errors

ErrorWhen it happensFix
Master key requiredA publication key (dp_…) was used for a master-only tool.Use the master key. If you do not have it, ask the Dispatch operator; a publication key cannot do this.

Related

Reference generated from web/lib/mcp.ts. If this page and your agent disagree, the code wins.

All tools