Search offers, recommend products, and test attribution context. Use Rako's MCP server for
zero-code integration, or the JavaScript and Python SDKs for full control.
MCP Server
The fastest way to connect an agent to Rako. Add the MCP server to Claude Desktop,
Cursor, or any MCP-compatible client — your agent gets three tools: search_offers, recommend, and checkout.
Record a recommendation and log the attribution event. This is how commission is earned.
Parameter
Type
Required
Description
session_id
string
Yes
Session ID from search_offers
offer_id
string
Yes
ID of the offer to recommend
context
string
No
Why this offer was recommended
checkout
Initiate checkout for a recommended offer.
Parameter
Type
Required
Description
session_id
string
Yes
Session ID from search_offers
recommendation_id
string
Yes
Recommendation ID from recommend
Example Conversation
MCP conversation flow
User: I need a new SIM deal. Cheap, at least 10GB, no contract.
Agent: [calls search_offers(vertical="sim", min_data_gb=10, contract_months=0)]
I found 4 options:
1. SMARTY 30GB — £10/mo (Three network, no credit check)
2. giffgaff 10GB — £10/mo (O2, 5G included)
3. giffgaff 25GB — £12/mo (O2, 5G included)
4. Lebara 5GB — £5/mo (Vodafone)
I'd recommend SMARTY 30GB — 3x the data at the same price.
[calls recommend(session_id, offer_id, context="Best value")]
User: Sounds good, let's go with SMARTY.
Agent: [calls checkout(session_id, recommendation_id)]
Done! Here's your checkout link: https://aap.link/r/...
JavaScript / TypeScript SDK
Full control from Node.js, Deno, or Bun. Type-safe, zero dependencies.
Three steps from search to earning commission. Every recommendation creates a
cryptographically signed attribution record.
1
Search
Your agent queries Rako for offers matching user intent — vertical, price,
features. Returns structured data with a session ID that tracks the journey.
2
Recommend
When your agent recommends a product, it calls recommend().
This is the attribution event — Rako records that your agent influenced the decision.
3
Checkout & Verify
When the user is ready to buy, checkout() starts
the handoff. The merchant's PSP handles payment; Rako records attribution context and supports commission accounting after validation and agreement.
How attribution survives
No cookies needed. Attribution is logged
server-side when recommend() is called,
not when a link is clicked.
Designed for handoff continuity. The session ID is designed to tie
the recommendation to a later purchase context, including device or browser changes where the verified flow supports it.
Drop-off recovery. Every recommendation
can return a fallbackUrl —
intended to preserve attribution context for later validation when the user does not buy immediately.
Verifiable record. Each offer carries a cryptographic
signature (AAP Code) that proves the Rako-issued record has not been tampered with; price and commission eligibility still depend on merchant validation and terms.
Supported Verticals
Rako supports multiple verticals. Pass any of these to the vertical parameter when searching.
sim
SIM Deals
Pay-monthly and pay-as-you-go SIM-only plans
broadband
Broadband
Home broadband and fibre packages
energy
Energy
Gas and electricity tariffs
flights
Flights
Flight offers and deals
hotels
Hotels
Hotel accommodation and packages
insurance
Insurance
Insurance products and policies
Ready to connect your agent?
Request access to test the agent attribution flow. Commercial terms for early participants are subject to approval and agreement.