FirstPromoter MCP by usefulapi
Read promoters, referrals, commissions and payouts; approve commissions in FirstPromoter.
¿Debería usar esto?
Calidad y seguridad
Hallazgos (6)
- LOWen firstpromoter_list_promoter_links
- LOWen firstpromoter_list_promoter_campaigns
- LOWen firstpromoter_approve_commissions
- LOWen firstpromoter_get_due_payout_stats
- LOWen firstpromoter_get_batch_process
- LOWen firstpromoter_report_traffic_sources
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"firstpromoter": {
"url": "https://firstpromoter.usefulapi.io/mcp"
}
}
}Puntos de conexión remotos
https://firstpromoter.usefulapi.io/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (19)
🟢firstpromoter_list_promoters(q, ids, page, per_page)
List the promoters (affiliates) in the account, with search and id filters. GET /promoters.
Esquema de entrada
{
"type": "object",
"properties": {
"q": {
"description": "Search text.",
"type": "string"
},
"ids": {
"description": "Only these numeric ids.",
"type": "array",
"items": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"page": {
"description": "Page number, starts at 1.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"per_page": {
"description": "Items per page (the vendor default is 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢firstpromoter_get_promoter(id, find_by)
Get one promoter's profile, campaigns and stats. Pass a numeric id, or set find_by to look up by email, cust_id, auth_token, ref_token or promo_code. GET /promoters/{id}.
Esquema de entrada
{
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"description": "The promoter id, or the value to find by when find_by is set."
},
"find_by": {
"type": "string",
"enum": [
"email",
"cust_id",
"auth_token",
"ref_token",
"promo_code"
]
}
},
"required": [
"id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢firstpromoter_list_promoter_links(id)
List a promoter's referral links: the default link plus campaign and custom links. GET /promoters/{id}/referral_links.
Esquema de entrada
{
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"description": "The promoter's numeric id."
}
},
"required": [
"id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢firstpromoter_list_promoter_campaigns(page, per_page)
List the promoter-campaign records: each promoter's enrollment in a campaign, with the ref token and coupon. GET /promoter_campaigns.
Esquema de entrada
{
"type": "object",
"properties": {
"page": {
"description": "Page number, starts at 1.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"per_page": {
"description": "Items per page (the vendor default is 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢firstpromoter_list_referrals(q, ids, type, promoter_id, state, ...)
List referrals (leads and customers) with filters for type, promoter, state and creation date. GET /referrals.
Esquema de entrada
{
"type": "object",
"properties": {
"q": {
"description": "Search by email, uid, username or website.",
"type": "string"
},
"ids": {
"description": "Only these numeric ids.",
"type": "array",
"items": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"type": {
"description": "Lead or customer.",
"type": "string",
"enum": [
"lead",
"customer"
]
},
"promoter_id": {
"description": "Only referrals of this promoter id.",
"type": "string"
},
"state": {
"description": "Referral state.",
"type": "string",
"enum": [
"subscribed",
"signup",
"active",
"cancelled",
"refunded",
"denied",
"pending",
"moved"
]
},
"created_from": {
"description": "Created on or after this date (YYYY-MM-DD).",
"type": "string"
},
"created_to": {
"description": "Created on or before this date (YYYY-MM-DD).",
"type": "string"
},
"page": {
"description": "Page number, starts at 1.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"per_page": {
"description": "Items per page (the vendor default is 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢firstpromoter_get_referral(id, find_by)
Get one referral by its id, or by email, uid or username with find_by. GET /referrals/{id}.
Esquema de entrada
{
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"description": "The referral id, or the value to find by when find_by is set."
},
"find_by": {
"type": "string",
"enum": [
"email",
"uid",
"username"
]
}
},
"required": [
"id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴firstpromoter_create_referral(promoter_campaign_id, email, uid)
Add a referral to a promoter campaign by email or uid (give at least one). Changes account data. POST /referrals.
Esquema de entrada
{
"type": "object",
"properties": {
"promoter_campaign_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The promoter-campaign id (from firstpromoter_list_promoter_campaigns)."
},
"email": {
"description": "Email address of the referral.",
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
"uid": {
"description": "Your own user id for the referral.",
"type": "string",
"minLength": 1
}
},
"required": [
"promoter_campaign_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢firstpromoter_list_commissions(q, ids, page, per_page)
List commissions and rewards across the account, with a search text and id filter. GET /commissions.
Esquema de entrada
{
"type": "object",
"properties": {
"q": {
"description": "Search text.",
"type": "string"
},
"ids": {
"description": "Only these numeric ids.",
"type": "array",
"items": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"page": {
"description": "Page number, starts at 1.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"per_page": {
"description": "Items per page (the vendor default is 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴firstpromoter_approve_commissions(ids)
Approve pending commissions by id so they can be paid out. More than 5 ids run as an asynchronous batch: the reply has a batch id to check with firstpromoter_get_batch_process. POST /commissions/approve.
Esquema de entrada
{
"type": "object",
"properties": {
"ids": {
"minItems": 1,
"type": "array",
"items": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"description": "Commission ids to approve."
}
},
"required": [
"ids"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢firstpromoter_list_payouts(q, ids, status, campaign_id, promoter_id, ...)
List payouts, filtered by status, campaign, promoter or payments batch. GET /payouts.
Esquema de entrada
{
"type": "object",
"properties": {
"q": {
"description": "Search text.",
"type": "string"
},
"ids": {
"description": "Only these numeric ids.",
"type": "array",
"items": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"status": {
"description": "Payout status, as the vendor names it.",
"type": "string"
},
"campaign_id": {
"description": "Only payouts of this campaign id.",
"type": "string"
},
"promoter_id": {
"description": "Only payouts of this promoter id.",
"type": "string"
},
"payments_batch_id": {
"description": "Only payouts in this payments batch.",
"type": "string"
},
"only_payable": {
"description": "Only payouts that can be paid now.",
"type": "boolean"
},
"page": {
"description": "Page number, starts at 1.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"per_page": {
"description": "Items per page (the vendor default is 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢firstpromoter_get_payout_stats(group_by, status, campaign_id)
Get payout totals grouped by paid period, status or payout method. GET /payouts/stats.
Esquema de entrada
{
"type": "object",
"properties": {
"group_by": {
"type": "string",
"enum": [
"paid_period",
"status",
"payout_method"
],
"description": "How to group the totals."
},
"status": {
"description": "Only payouts with this status.",
"type": "string"
},
"campaign_id": {
"description": "Only payouts of this campaign id.",
"type": "string"
}
},
"required": [
"group_by"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢firstpromoter_get_due_payout_stats(status, campaign_id)
Get the totals of payouts that are due now, optionally for one status or campaign. GET /payouts/due_stats.
Esquema de entrada
{
"type": "object",
"properties": {
"status": {
"description": "Only payouts with this status.",
"type": "string"
},
"campaign_id": {
"description": "Only payouts of this campaign id.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢firstpromoter_list_promo_codes(promoter_campaign_id)
List promo codes on the account, optionally for one promoter campaign. GET /promo_codes.
Esquema de entrada
{
"type": "object",
"properties": {
"promoter_campaign_id": {
"description": "Only codes of this promoter campaign id.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢firstpromoter_get_promo_code(id)
Get one promo code with its reward and promoter campaign. GET /promo_codes/{id}.
Esquema de entrada
{
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"description": "The promo code id."
}
},
"required": [
"id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢firstpromoter_get_batch_process(id)
Get the status, totals and errors of one batch process started by a bulk action (for example approving more than 5 commissions). GET /batch_processes/{id}.
Esquema de entrada
{
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"description": "The batch id from the bulk action reply."
}
},
"required": [
"id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢firstpromoter_report_overview(columns, group_by, start_date, end_date, q)
Get account-wide metrics (clicks, referrals, customers, revenue, commissions) over a date range, grouped by time. GET /reports/overview.
Esquema de entrada
{
"type": "object",
"properties": {
"columns": {
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "Metric columns, for example clicks_count, referrals_count, customers_count, sales_count, revenue_amount, net_revenue_amount, promoter_earnings_amount, refunds_count, monthly_churn, active_customers, referrals_to_customers_cr, clicks_to_customers_cr."
},
"group_by": {
"type": "string",
"enum": [
"day",
"week",
"month",
"year"
],
"description": "Time bucket for the rows."
},
"start_date": {
"type": "string",
"minLength": 1,
"description": "Date-time in ISO 8601, for example 2026-01-01T00:00:00Z. A plain date (2026-01-01) is read as UTC: the start of the day for start_date, the end of the day for end_date."
},
"end_date": {
"type": "string",
"minLength": 1,
"description": "Date-time in ISO 8601, for example 2026-01-01T00:00:00Z. A plain date (2026-01-01) is read as UTC: the start of the day for start_date, the end of the day for end_date."
},
"q": {
"description": "Search text.",
"type": "string"
}
},
"required": [
"columns",
"group_by",
"start_date",
"end_date"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢firstpromoter_report_campaigns(columns, group_by, start_date, end_date, q)
Get metrics grouped by campaign over a date range. GET /reports/campaigns.
Esquema de entrada
{
"type": "object",
"properties": {
"columns": {
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "Metric columns, for example clicks_count, referrals_count, customers_count, sales_count, revenue_amount, net_revenue_amount, promoter_earnings_amount, refunds_count, monthly_churn, active_customers, referrals_to_customers_cr, clicks_to_customers_cr."
},
"group_by": {
"type": "string",
"enum": [
"day",
"week",
"month",
"year"
],
"description": "Time bucket for the rows."
},
"start_date": {
"type": "string",
"minLength": 1,
"description": "Date-time in ISO 8601, for example 2026-01-01T00:00:00Z. A plain date (2026-01-01) is read as UTC: the start of the day for start_date, the end of the day for end_date."
},
"end_date": {
"type": "string",
"minLength": 1,
"description": "Date-time in ISO 8601, for example 2026-01-01T00:00:00Z. A plain date (2026-01-01) is read as UTC: the start of the day for start_date, the end of the day for end_date."
},
"q": {
"description": "Search text.",
"type": "string"
}
},
"required": [
"columns",
"group_by",
"start_date",
"end_date"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢firstpromoter_report_promoters(columns, group_by, start_date, end_date, q)
Get metrics grouped by promoter over a date range, with search. GET /reports/promoters.
Esquema de entrada
{
"type": "object",
"properties": {
"columns": {
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "Metric columns, for example clicks_count, referrals_count, customers_count, sales_count, revenue_amount, net_revenue_amount, promoter_earnings_amount, refunds_count, monthly_churn, active_customers, referrals_to_customers_cr, clicks_to_customers_cr."
},
"group_by": {
"type": "string",
"enum": [
"day",
"week",
"month",
"year"
],
"description": "Time bucket for the rows."
},
"start_date": {
"type": "string",
"minLength": 1,
"description": "Date-time in ISO 8601, for example 2026-01-01T00:00:00Z. A plain date (2026-01-01) is read as UTC: the start of the day for start_date, the end of the day for end_date."
},
"end_date": {
"type": "string",
"minLength": 1,
"description": "Date-time in ISO 8601, for example 2026-01-01T00:00:00Z. A plain date (2026-01-01) is read as UTC: the start of the day for start_date, the end of the day for end_date."
},
"q": {
"description": "Search text.",
"type": "string"
}
},
"required": [
"columns",
"group_by",
"start_date",
"end_date"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢firstpromoter_report_traffic_sources(columns, group_by, start_date, end_date, q)
Get metrics grouped by traffic source over a date range. GET /reports/traffic_sources.
Esquema de entrada
{
"type": "object",
"properties": {
"columns": {
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "Metric columns, for example clicks_count, referrals_count, customers_count, sales_count, revenue_amount, net_revenue_amount, promoter_earnings_amount, refunds_count, monthly_churn, active_customers, referrals_to_customers_cr, clicks_to_customers_cr."
},
"group_by": {
"type": "string",
"enum": [
"day",
"week",
"month",
"year"
],
"description": "Time bucket for the rows."
},
"start_date": {
"type": "string",
"minLength": 1,
"description": "Date-time in ISO 8601, for example 2026-01-01T00:00:00Z. A plain date (2026-01-01) is read as UTC: the start of the day for start_date, the end of the day for end_date."
},
"end_date": {
"type": "string",
"minLength": 1,
"description": "Date-time in ISO 8601, for example 2026-01-01T00:00:00Z. A plain date (2026-01-01) is read as UTC: the start of the day for start_date, the end of the day for end_date."
},
"q": {
"description": "Search text.",
"type": "string"
}
},
"required": [
"columns",
"group_by",
"start_date",
"end_date"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Comunidad
Evidencia