Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PARTNERSTACK_CODENoPartnerStack referral code
WALLET_PRIVATE_KEYNoBase wallet with USDC + ETH for gas, required for call_affiliate_product with x402 adapters
GUMROAD_AFFILIATE_IDNoGumroad tracking ID
PYRIMID_AFFILIATE_IDNoDefault affiliate ID for Pyrimid-registered products

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/forgemeshlabs/affiliate-router-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server