SKILL.md
Stripe Automation via Rube MCP
Automate Stripe payment operations through Composio's Stripe toolkit via Rube MCP.
Prerequisites
- Rube MCP must be connected (RUBESEARCHTOOLS available)
- Active Stripe connection via
RUBEMANAGECONNECTIONSwith toolkitstripe - Always call
RUBESEARCHTOOLSfirst to get current tool schemas
Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming
RUBESEARCHTOOLSresponds - Call
RUBEMANAGECONNECTIONSwith toolkitstripe - If connection is not ACTIVE, follow the returned auth link to complete Stripe connection
- Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Manage Customers
When to use: User wants to create, update, search, or list Stripe customers
Tool sequence:
STRIPESEARCHCUSTOMERS- Search customers by email/name [Optional]STRIPELISTCUSTOMERS- List all customers [Optional]STRIPECREATECUSTOMER- Create a new customer [Optional]STRIPEPOSTCUSTOMERS_CUSTOMER- Update a customer [Optional]
Key parameters:
email: Customer emailname: Customer namedescription: Customer descriptionmetadata: Key-value metadata pairscustomer: Customer ID for updates (e.g., 'cus_xxx')
Pitfalls:
- Stripe allows duplicate customers with the same email; search first to avoid duplicates
- Customer IDs start with 'cus_'
2. Manage Charges and Payments
When to use: User wants to create charges, payment intents, or view charge history
Tool sequence:
STRIPELISTCHARGES- List charges with filters [Optional]STRIPECREATEPAYMENT_INTENT- Create a payment intent [Optional]STRIPECONFIRMPAYMENT_INTENT- Confirm a payment intent [Optional]STRIPEPOSTCHARGES- Create a direct charge [Optional]STRIPECAPTURECHARGE- Capture an authorized charge [Optional]
Key parameters:
amount: Amount in smallest currency unit (e.g., cents for USD)currency: Three-letter ISO currency code (e.g., 'usd')customer: Customer IDpayment_method: Payment method IDdescription: Charge description
Pitfalls:
- Amounts are in smallest currency unit (100 = $1.00 for USD)
- Currency codes must be lowercase (e.g., 'usd' not 'USD')
- Payment intents are the recommended flow over direct charges
3. Manage Subscriptions
When to use: User wants to create, list, update, or cancel subscriptions
Tool sequence:
STRIPELISTSUBSCRIPTIONS- List subscriptions [Optional]STRIPEPOSTCUSTOMERSCUSTOMERSUBSCRIPTIONS- Create subscription [Optional]STRIPERETRIEVESUBSCRIPTION- Get subscription details [Optional]STRIPEUPDATESUBSCRIPTION- Modify subscription [Optional]
Key parameters:
customer: Customer IDitems: Array of price items (price_id and quantity)subscription: Subscription ID for retrieval/update (e.g., 'sub_xxx')
Pitfalls:
- Subscriptions require a valid customer with a payment method
- Price IDs (not product IDs) are used for subscription items
- Cancellation can be immediate or at period end
4. Manage Invoices
When to use: User wants to create, list, or search invoices
Tool sequence:
STRIPELISTINVOICES- List invoices [Optional]STRIPESEARCHINVOICES- Search invoices [Optional]STRIPECREATEINVOICE- Create an invoice [Optional]
Key parameters:
customer: Customer ID for invoicecollectionmethod: 'chargeautomatically' or 'send_invoice'daysuntildue: Days until invoice is due
Pitfalls:
- Invoices auto-finalize by default; use
auto_advance: falsefor draft invoices
5. Manage Products and Prices
When to use: User wants to list or search products and their pricing
Tool sequence:
STRIPELISTPRODUCTS- List products [Optional]STRIPESEARCHPRODUCTS- Search products [Optional]STRIPELISTPRICES- List prices [Optional]STRIPEGETPRICES_SEARCH- Search prices [Optional]
Key parameters:
active: Filter by active/inactive statusquery: Search query for search endpoints
Pitfalls:
- Products and prices are separate objects; a product can have multiple prices
- Price IDs (e.g., 'price_xxx') are used for subscriptions and checkout
6. Handle Refunds
When to use: User wants to issue refunds on charges
Tool sequence:
STRIPELISTREFUNDS- List refunds [Optional]STRIPEPOSTCHARGESCHARGEREFUNDS- Create a refund [Optional]STRIPECREATEREFUND- Create refund via payment intent [Optional]
Key parameters:
charge: Charge ID for refundamount: Partial refund amount (omit for full refund)reason: Refund reason ('duplicate', 'fraudulent', 'requestedbycustomer')
Pitfalls:
- Refunds can take 5-10 business days to appear on customer statements
- Amount is in smallest currency unit
Common Patterns
Amount Formatting
Stripe uses smallest currency unit:
- USD: $10.50 = 1050 cents
- EUR: 10.50 = 1050 cents
- JPY: 1000 = 1000 (no decimals)
Pagination
- Use
limitparameter (max 100) - Check
has_morein response - Pass
starting_afterwith last object ID for next page - Continue until
has_moreis false
Known Pitfalls
Amount Units:
- Always use smallest currency unit (cents for USD/EUR)
- Zero-decimal currencies (JPY, KRW) use the amount directly
ID Prefixes:
- Customers:
cus, Charges:ch, Subscriptions:sub_ - Invoices:
in, Products:prod, Prices:price_ - Payment Intents:
pi, Refunds:re
Quick Reference
| Task | Tool Slug | Key Params |
|---|---|---|
| Create customer | STRIPECREATECUSTOMER | email, name |
| Search customers | STRIPESEARCHCUSTOMERS | query |
| Update customer | STRIPEPOSTCUSTOMERS_CUSTOMER | customer, fields |
| List charges | STRIPELISTCHARGES | customer, limit |
| Create payment intent | STRIPECREATEPAYMENT_INTENT | amount, currency |
| Confirm payment | STRIPECONFIRMPAYMENT_INTENT | payment_intent |
| List subscriptions | STRIPELISTSUBSCRIPTIONS | customer |
| Create subscription | STRIPEPOSTCUSTOMERSCUSTOMERSUBSCRIPTIONS | customer, items |
| Update subscription | STRIPEUPDATESUBSCRIPTION | subscription, fields |
| List invoices | STRIPELISTINVOICES | customer |
| Create invoice | STRIPECREATEINVOICE | customer |
| Search invoices | STRIPESEARCHINVOICES | query |
| List products | STRIPELISTPRODUCTS | active |
| Search products | STRIPESEARCHPRODUCTS | query |
| List prices | STRIPELISTPRICES | product |
| Search prices | STRIPEGETPRICES_SEARCH | query |
| List refunds | STRIPELISTREFUNDS | charge |
| Create refund | STRIPECREATEREFUND | charge, amount |
| Payment methods | STRIPELISTCUSTOMERPAYMENTMETHODS | customer |
| Checkout session | STRIPECREATECHECKOUT_SESSION | line_items |
| List payment intents | STRIPELISTPAYMENT_INTENTS | customer |
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
Example
User request:
Automate Stripe tasks via Rube MCP (Composio): customers, charges, subscriptions, invoices, products, refunds.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.