affiliate-router-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PARTNERSTACK_CODE | No | PartnerStack referral code | |
| WALLET_PRIVATE_KEY | No | Base wallet with USDC + ETH for gas, required for call_affiliate_product with x402 adapters | |
| GUMROAD_AFFILIATE_ID | No | Gumroad tracking ID | |
| PYRIMID_AFFILIATE_ID | No | Default affiliate ID for Pyrimid-registered products |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_opportunitiesB | Search affiliate opportunities by keyword or category. Returns matching vendors and products with commission info. Free — no payment required. |
| list_affiliate_programsA | List all registered affiliate programs with commission rates, affiliate system type, and status. Free. |
| get_opportunity_detailsA | Get full details for a vendor and optionally a specific product — endpoint, pricing, commission, params. Free. |
| get_best_routeA | Given a natural language intent, find the best matching affiliate opportunity ranked by relevance, trust, and commission. Free. |
| generate_affiliate_linkA | Generate a tracked affiliate link for a referral-link or query-param-link vendor. No payment required. |
| call_affiliate_productA | Call a paid x402 API product with automatic affiliate attribution. Handles full payment (USDC on Base). Pyrimid affiliate routing used when eligible; falls back to direct x402 if affiliate_id is invalid. Costs USDC per call — amount shown in get_opportunity_details. |
| estimate_commissionA | Estimate affiliate commission for a product based on known rates. Returns per-call and monthly estimates. Free. |
| get_affiliate_telemetryA | Read local affiliate telemetry log — timestamps, vendors, products, amounts, affiliate IDs, statuses. Free. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 8 tools
Each tool has a clearly distinct purpose: calling a paid product, estimating commissions, generating links, reading telemetry, finding the best route, getting details, listing programs, and searching opportunities. No two tools overlap in functionality.
All tools follow a consistent 'verb_noun' pattern in snake_case (e.g., call_affiliate_product, estimate_commission, list_affiliate_programs). There is no mixing of styles or irregular naming.
With exactly 8 tools, the set is well-scoped for the affiliate routing domain. It provides sufficient functionality without being overwhelming or sparse.
The tool set covers key user workflows: discovering, evaluating, and using affiliate products, plus telemetry. A minor gap is the lack of tools for creating or managing affiliate programs, but this may be outside the intended scope.