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_slotEndpoint
POST https://dispatch.nshipyard.com/api/mcpCall it with method tools/call and name dispatch_define_slot.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
template_id | string | Optional | Template id (template-level slot) |
publication_id | string | Optional | Publication id (publication-level slot) |
key | string | Required | Stable slot key, e.g. 'top-banner' |
position | string | Required | 'top', 'mid', or 'bottom': where the creative lands in the email |
size | string | Optional | Size hint, e.g. '600x140' |
price_cents | integer | Optional | Price in cents |
currency | string | Optional | ISO currency, default USD |
Returns
slot.idstring- The slot id.
slot.keystring- The stable key, e.g. 'top-banner'.
slot.positionstring- 'top', 'mid', or 'bottom'.
slot.price_centsnumber- Price in cents.
Errors
| Error | When it happens | Fix |
|---|---|---|
Pass exactly one of template_id or publication_id | Both or neither were given. | Pass one: template_id for a network-wide slot, publication_id for one publication. |
Not authorized for this publication | The 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.