PartnerStack MCP by usefulapi

v1.2.1
io.usefulapi/partnerstack Checked 3 days ago Published 1 day ago

Read partnerships, leads, deals and rewards; create leads and customers in PartnerStack.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

partnerstack_list_partnerships

List the partnerships of your program: the partners who joined it, with their keys, status and groups. Use it first to find a partnership_key. Returns data.items and data.has_more.

ParameterTypeDescription
ending_beforestringItem key: return the items before this one (use this or starting_after, not both)
has_sub_idstringOnly partnerships that use sub IDs (true), do not (false), or are unknown (null)
include_archivedbooleanInclude archived partnerships
limitintegerItems to return, 1 to 250 (default 10)
order_bystringSort field; a leading - means descending
starting_afterstringItem key: return the items after this one (the last key of the previous page)

partnerstack_get_partnership

Get one partnership by its key or unique identifier: partner, status, group and tags.

ParameterTypeDescription
unique_identifier *stringPartnership key or unique identifier

partnerstack_list_customers

List the customers your program has recorded, with their partner and creation time. Returns data.items and data.has_more.

ParameterTypeDescription
ending_beforestringItem key: return the items before this one (use this or starting_after, not both)
limitintegerItems to return, 1 to 250 (default 10)
max_createdintegerOnly items created at or before this Unix time in milliseconds
min_createdintegerOnly items created at or after this Unix time in milliseconds
order_bystringSort field; a leading - means descending
partnership_keystringOnly the customers of this partnership
starting_afterstringItem key: return the items after this one (the last key of the previous page)

partnerstack_get_customer

Get one customer by its customer key: partner, email, name and metadata.

ParameterTypeDescription
customer_key *stringCustomer key

partnerstack_create_customer

Create one customer under a partner in your program. The customer is not linked to a referral click. Use partnerstack_get_customer to check it afterwards.

ParameterTypeDescription
customer_key *stringYour key for the customer; unique in your program
email *stringCustomer email address
partner_key *stringKey of the partner responsible for the customer
member_keystringKey of the partner team member responsible for the customer
metaobjectExtra custom fields configured in your program
namestringCustomer name or company name
provider_keystringPayment provider id (Stripe, Recurly, Chargebee, ...)

partnerstack_list_leads

List leads: introductions that partners submitted to your sales team. Returns data.items and data.has_more.

ParameterTypeDescription
ending_beforestringItem key: return the items before this one (use this or starting_after, not both)
groupstringOnly partnerships in this group name (spaces and special characters removed)
lead_keystringOnly the lead with this key
limitintegerItems to return, 1 to 250 (default 10)
max_createdintegerOnly items created at or before this Unix time in milliseconds
max_updatedintegerOnly items updated at or before this Unix time in milliseconds
min_createdintegerOnly items created at or after this Unix time in milliseconds
min_updatedintegerOnly items updated at or after this Unix time in milliseconds
partner_keystringOnly the leads of this partner
starting_afterstringItem key: return the items after this one (the last key of the previous page)

partnerstack_get_lead

Get one lead by its key: partner, status, amount, stage and fields.

ParameterTypeDescription
lead_key *stringLead key

partnerstack_create_lead

Create one lead for a partner: a new introduction to your sales team. external_key must be unique for the lead in your system. Use partnerstack_get_lead to check it.

ParameterTypeDescription
external_key *stringYour key for this lead; unique in your system
partner_key *stringKey of the partner who submits the lead
amountintegerLead amount in cents
group_keystringGroup key of the lead
metaobjectExtra key/value data about the lead (default: none)
stage_api_namestringapi_name of the pipeline stage the lead should be in
statusstringLead status (default: open)
team_member_emailstringEmail of the partner team member who submits the lead

partnerstack_list_deals

List deals: sales opportunities that resellers and partners share with you. Returns data.items and data.has_more.

ParameterTypeDescription
customer_keyarrayOnly the deals of these customer keys (one query value each)
deal_keystringOnly the deal with this key
ending_beforestringItem key: return the items before this one (use this or starting_after, not both)
groupstringOnly partnerships in this group name (spaces and special characters removed)
limitintegerItems to return, 1 to 250 (default 10)
max_createdintegerOnly items created at or before this Unix time in milliseconds
max_updatedintegerOnly items updated at or before this Unix time in milliseconds
min_createdintegerOnly items created at or after this Unix time in milliseconds
min_updatedintegerOnly items updated at or after this Unix time in milliseconds
partner_keystringOnly the deals of this partner
starting_afterstringItem key: return the items after this one (the last key of the previous page)

partnerstack_get_deal

Get one deal by its key: partner, status, amount and stage.

ParameterTypeDescription
deal_key *stringDeal key

partnerstack_list_transactions

List transactions: payments PartnerStack recorded for your customers. Read only. Returns data.items and data.has_more.

ParameterTypeDescription
category_keystringOnly the transactions of this category
customer_emailstringOnly the transactions of the customer with this email
customer_keystringOnly the transactions of this customer
ending_beforestringItem key: return the items before this one (use this or starting_after, not both)
include_archivedbooleanInclude archived transactions
limitintegerItems to return, 1 to 250 (default 10)
product_keystringOnly the transactions of this product
starting_afterstringItem key: return the items after this one (the last key of the previous page)
transaction_keystringOnly the transaction with this key

partnerstack_list_rewards

List rewards: commissions owed to partners, with amount, status and the transaction they came from. Read only. Returns data.items and data.has_more.

ParameterTypeDescription
customer_keystringOnly the rewards of this customer
ending_beforestringItem key: return the items before this one (use this or starting_after, not both)
limitintegerItems to return, 1 to 250 (default 10)
max_createdintegerOnly items created at or before this Unix time in milliseconds
min_createdintegerOnly items created at or after this Unix time in milliseconds
order_bystringSort field; a leading - means descending
partnership_keystringOnly the rewards of this partnership
starting_afterstringItem key: return the items after this one (the last key of the previous page)
statusstringReward status, as PartnerStack uses it (for example pending or ready)

partnerstack_list_actions

List actions: events that partners or customers took and that PartnerStack recorded (for example a sign-up). Read only. Returns data.items and data.has_more.

ParameterTypeDescription
action_typestringOnly actions of this type
customer_keystringOnly the actions of this customer
ending_beforestringItem key: return the items before this one (use this or starting_after, not both)
limitintegerItems to return, 1 to 250 (default 10)
max_createdintegerOnly items created at or before this Unix time in milliseconds
max_updatedintegerOnly items updated at or before this Unix time in milliseconds
min_createdintegerOnly items created at or after this Unix time in milliseconds
min_updatedintegerOnly items updated at or after this Unix time in milliseconds
partnership_keystringOnly the actions of this partnership
starting_afterstringItem key: return the items after this one (the last key of the previous page)

partnerstack_list_groups

List the partner groups of your program (for example tiers or regions). Read only. Returns data.items and data.has_more.

ParameterTypeDescription
ending_beforestringItem key: return the items before this one (use this or starting_after, not both)
limitintegerItems to return, 1 to 250 (default 10)
max_createdintegerOnly items created at or before this Unix time in milliseconds
max_updatedintegerOnly items updated at or before this Unix time in milliseconds
min_createdintegerOnly items created at or after this Unix time in milliseconds
min_updatedintegerOnly items updated at or after this Unix time in milliseconds
starting_afterstringItem key: return the items after this one (the last key of the previous page)

partnerstack_list_products

List the products of your customers, with the partner and click that brought them. Read only. Returns data.items and data.has_more.

ParameterTypeDescription
click_xidstringOnly the products of this referral click
customer_keystringOnly the products of this customer
ending_beforestringItem key: return the items before this one (use this or starting_after, not both)
limitintegerItems to return, 1 to 250 (default 10)
order_bystringSort field; a leading - means descending
stack_keystringOnly the products of this partner team member (stack key)
starting_afterstringItem key: return the items after this one (the last key of the previous page)