Master or publication key — depends on the callGenerated from lib/mcp.ts

dispatch_define_slot

Defines a sponsor slot: a labelled ad position in an edition. A template slot is inherited by every child; a publication slot shadows it, e.g. to set a per-city price.

Define a sponsor slot: an ad position in the edition template. Template-level (template_id, master key) inherits to every child publication; publication-level (publication_id, scoped key ok) shadows the template slot with the same key, e.g. to set a per-city price.

  • Use it when: To create an ad position before booking a sponsor into it.
  • Don't use it when: Do not use it to book a sponsor. That is dispatch_book_slot.

Link and endpoint

Page link

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

Endpoint

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

Call it with method tools/call and name dispatch_define_slot.

Parameters

NameTypeRequiredDescription
template_idstringOptionalTemplate id (template-level slot)
publication_idstringOptionalPublication id (publication-level slot)
keystringRequiredStable slot key, e.g. 'top-banner'
positionstringRequired'top', 'mid', or 'bottom': where the creative lands in the email
sizestringOptionalSize hint, e.g. '600x140'
price_centsintegerOptionalPrice in cents
currencystringOptionalISO currency, default USD

Returns

slot.id string
The slot id.
slot.key string
The stable key, e.g. 'top-banner'.
slot.position string
'top', 'mid', or 'bottom'.
slot.price_cents number
Price in cents.

Errors

ErrorWhen it happensFix
Pass exactly one of template_id or publication_idBoth or neither were given.Pass one: template_id for a network-wide slot, publication_id for one publication.
Not authorized for this publicationThe key belongs to a different publication.Use the publication key shown on that publication's Overview page, or the master key.

Related

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

All tools