create_link and find_link as tools an AI assistant can call —
so an assistant helping you plan a campaign can mint the tracked link itself, instead of you
copying values back and forth from the dashboard.
This wraps the same Machine Create API covered elsewhere — every link an
MCP tool creates follows the identical interview and governance rules as the dashboard UI and the
HTTP API. There is no separate MCP-only taxonomy.
What it does
create_link— mints a link with the same inputs the dashboard’s Add Mapping dialog accepts. Always attaches anexternal_id, generating one automatically if you don’t supply it, so a retry never creates a duplicate.find_link— retrieves a link you created earlier by itsexternal_id. Returnsfound: falserather than throwing when nothing matches.
Prerequisites
- Node.js 18 or later
- A Dáva account with at least one connected domain
- A Dáva API key with the Links scope — see Create Links via API → Authentication for how to create one
Claude Desktop setup
Add the server to your Claude Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS,
%APPDATA%\Claude\claude_desktop_config.json on Windows):
create_link and find_link appear automatically the next
time you start a conversation.
Workflow: Dáva first, then Meta
Create the link in Dáva before setting up the destination in your ad platform, not after — the assistant can hand you the finished tracked URL to paste into Meta (or Google, or wherever the campaign is running), rather than you tracking down the mapping after the fact.- Ask the assistant to create the link (it calls
create_link). - Take the
issued_urlit returns. - Paste that URL as the destination in your ad platform’s campaign setup.
Example exchange
You: “Create a Dáva link for our spring sale campaign, pointing tohttps://yourcompany.com/products, sourced from Meta paid social.”
Assistant calls create_link with:
https://yourdomain.com/ref/spring-sale.
Use that as the destination URL in your Meta ad.”
Retries are idempotent
If a tool call times out or the assistant retries, it’s safe —create_link reuses the same
external_id mechanism as the HTTP API, so a retry returns the existing link instead of minting a
second one.