AffiliateRail docs
MCP

Recipes

The question-to-tools sequences: what to ask, which tools answer it, and how the answer is read.

These are the sequences the AffiliateRail skill uses to turn one question into a composed answer. You never name a tool yourself; asking the question in the left column is enough, and this table shows what happens underneath.

One question usually takes several tools. These are the sequences that answer the questions merchants actually ask; run the steps in order and interpret across them.

The merchant asksTools, in orderWhat to do with the results
"Who went quiet?"idle_partners, then partner_detail per resultSeparate never-active partners from lapsed earners; the lapsed ones with past commissions are the re-engagement list.
"Who should I pay this month?"pending_commissions, then list_risk_flags, then payout_statusApprovals minus anyone with an open flag; then check the last run's failures so the same payout does not fail twice.
"Is my program healthy?"report, then top_partners, then revenue_by_periodTrend beats snapshot: compare periods, then check how concentrated revenue is in the top few partners.
"Am I about to pay someone I shouldn't?"list_risk_flags, then list_commissions with status pendingCross the open flags against the pending queue by partner; anything on both lists gets reviewed before approval.
"Why is nobody activating?"list_partners with status active, then recent_referrals, then flows_summaryMany active partners with few referrals is an enablement problem; check whether the commission rules give a clear first win.
"Why was this commission rejected?"list_commissions with status rejected, then partner_detailThe rejection reason is on the commission; the partner's history says whether it was a one-off.
"Did my partners get paid?"payout_statusFailed and not-eligible payouts carry their reason; each is a task for the merchant, usually on the partner's side.
"What can I ask about?"schema_introspect, then program://currentThe object and field vocabulary, then the program's own settings, currency and counts.

Every tool named here is documented in the tool reference, and the same table ships inside the skill, from one source, so the two cannot drift apart.