AI assistants over MCP
Point any MCP-capable assistant at POST /api/v1/mcp with an API token. The
endpoint executes reads and writes, it does not interpret them — there are no
analysis features, by design.
Authentication
The same bearer tokens as the REST API (Authorization: Bearer <token>),
under the same per-token rate limit. Each tool checks the token's scopes
exactly like its REST twin: a read-only token cannot create, and a denial
comes back as a tool error in words, not a code to decode. There is no
delete tool at all — an assistant acting on a misunderstood prompt must not
be able to destroy what it cannot rebuild. It can rename a page or hide a
block; it cannot remove either.
Tools
Links
| Tool | Does | Needs |
|---|---|---|
create_link | Shorten a URL (destination_url, optional custom_slug, title, tags). Returns the id and public path. | links:write |
list_links | Newest-first links (query, limit up to 100). | links:read |
link_stats | Clicks for one link over a trailing window (link_id, days), with the previous window beside them. Same numbers the dashboard shows. | links:read |
Pages
page_id is optional on get_page, add_block and reorder_blocks: omit it
and the tool works on the bio page, which is the account's front door.
| Tool | Does | Needs |
|---|---|---|
list_pages | The bio page plus every sub-page, with public paths and publish state. | pages:read |
get_page | One page and its blocks in display order (page_id). | pages:read |
create_page | A sub-page under the handle (segment, title, optional description, theme). | pages:write |
update_page | Title, description, theme, path segment, publish and index state (page_id plus the fields to change). | pages:write |
add_block | A block on a page (kind, label, url, description, icon, style). | pages:write |
update_block | Label, destination, description, icon, style, visibility (block_id). | pages:write |
reorder_blocks | Every block id on a page, top to bottom. | pages:write |
update_profile | Public display name, bio, avatar. | profile:write |
Block kind is one of link, text, heading, social, embed, choice,
buy, contact, product, gallery.
Analytics
| Tool | Does | Needs |
|---|---|---|
account_stats | Account-wide clicks for a trailing window, the window before it, lifetime counters, and the busiest links (days). | analytics:read |
Campaigns
Read-only. A giveaway is money, legal rules and a draw, and every editing step in the dashboard previews what an entrant will see — so the assistant reports on campaigns instead of restructuring them. Participant results carry no email, phone, or custom-field answers.
| Tool | Does | Needs |
|---|---|---|
list_campaigns | Giveaways with live participant, entry, and view counts (status, limit). | campaigns:read |
get_campaign | One giveaway: name, public path, status, window, timezone (campaign_id). | campaigns:read |
campaign_stats | Views, joins, entries, and shares for a trailing window, with the window before it (campaign_id, days). | campaigns:read |
list_participants | Entrants, paginated and searchable (campaign_id, search, limit). | campaigns:read |
Booking
Read-only. An event type is availability rules, buffers, notice windows and a calendar connection — each one a dashboard form where the effect is visible. Invitee email is never returned.
| Tool | Does | Needs |
|---|---|---|
list_event_types | Bookable event types: slug, title, duration, public path, location, live booking count. | booking:read |
list_bookings | Bookings with event, time, status, and invitee name (status, scope, search, limit). | booking:read |
booking_stats | Upcoming, requests, completed, cancelled, and this month. | booking:read |
Forms
Read-only, and answers stop at metadata: the schema says what the creator asked, the response list says when someone replied. The answer bag is not part of this surface, because a form response is the easiest payload to paste into a chat window.
| Tool | Does | Needs |
|---|---|---|
list_forms | Forms with public path, status, responses, and views. | forms:read |
get_form | One form's questions: key, type, label, required (form_id). | forms:read |
form_stats | Views, starts, responses, last seven days, completion and response rate (form_id). | forms:read |
form_responses | Submission metadata — when, status, test flag — never the answers (form_id, limit). | forms:read |
Domains
The one write in this group, because the work is one call plus a DNS record: the assistant prepares it, the human pastes it, and nothing is served until verification passes.
| Tool | Does | Needs |
|---|---|---|
list_domains | Domains, verification state, remaining allowance, and the CNAME still needed for each unverified one. | domains:read |
add_domain | Attach a hostname and return the CNAME record to create (hostname). | domains:write |
Protocol
JSON-RPC 2.0 over Streamable HTTP: initialize, tools/list,
tools/call. The server answers each request with a single JSON object —
no SSE streams. Unknown methods and tools answer -32601, malformed
envelopes -32700, and notifications (including notifications/initialized)
take a bare 202 with no body.