Agent Billing Management
agent-billingManage billing for the authenticated user.
Actions: stripe-config (get Stripe publishable key for headless card tokenization),
create-setup-intent (create SetupIntent for 3DS-safe card saving),
create-payment-link (generate Stripe-hosted payment URL to forward to human — supports
card, Google Pay, Amazon Pay, Link, etc.),
overview, payment-methods, add-payment-method, set-default-payment-method,
remove-payment-method, billing-info, update-billing-info, invoices, invoice-detail, invoice-pdf.
Three payment paths: (1) Headless: stripe-config → tokenize → payment_method_id,
(2) Human-assisted: create-payment-link → forward URL → poll confirm-checkout,
(3) SetupIntent: create-setup-intent → confirm via Stripe → reuse payment method.
All actions require authentication.Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "agent-billing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Billing name (for update-billing-info) | |
| No | Billing email (for update-billing-info) | ||
| action | Yes | The billing action: stripe-config, create-setup-intent, create-payment-link, overview, payment-methods, add-payment-method, set-default-payment-method, remove-payment-method, billing-info, update-billing-info, invoices, invoice-detail, invoice-pdf | |
| amount | No | Amount in USD, minimum $15 (required for create-payment-link with purpose=fund) | |
| tax_id | No | Tax ID value (for update-billing-info) | |
| plan_id | No | Plan ID (required for create-payment-link with purpose=subscribe) | |
| purpose | No | Payment link purpose: "fund" (wallet) or "subscribe" (subscription). Required for create-payment-link. | |
| invoice_id | No | Invoice ID (for invoice-detail, invoice-pdf) | |
| tax_id_type | No | Tax ID type e.g. eu_vat, us_ein (required with tax_id) | |
| address_city | No | City (for update-billing-info) | |
| make_default | No | Make the new payment method the default (for add-payment-method, default: true) | |
| address_line1 | No | Address line 1 (for update-billing-info) | |
| address_line2 | No | Address line 2 (for update-billing-info) | |
| address_state | No | State/province (for update-billing-info) | |
| address_country | No | Country code (for update-billing-info) | |
| idempotency_key | No | Idempotency key for mutation actions (optional — auto-generated if omitted for add-payment-method, update-billing-info) | |
| payment_method_id | No | Stripe payment method ID (for add/set-default/remove-payment-method) | |
| address_postal_code | No | Postal/zip code (for update-billing-info) |