Subscribe or resubscribe
amber_reactivate_subscriptionCreate a PayPal subscription and return an approval URL to reactivate access. Warn users to log in with their original PayPal account; no charge until approved.
Instructions
Create a PayPal subscription and return an approval URL. The user MUST open this URL in their browser to activate. Do NOT use if the user just wants to manage an existing subscription -- use amber_manage_subscription instead.
First-time: 90-day free trial, then $2.99/month. Returning: preserves remaining free days, or bills immediately if expired. Warn the user to log in with the SAME PayPal account they originally signed up with.
No charge until the user approves. Returns code: already_active if active, code: deletion_scheduled if deletion is pending. Each call creates a NEW pending subscription with its own approval URL, so give the user the latest one. Approving one cancels any other active subscription on the same account, so an older link approved by mistake cannot bill twice.
Errors: creation_failed (PayPal would not create the subscription; nothing was charged and retrying is safe).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "amber_reactivate_subscription"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | Always `approval_needed`: a subscription was created and is waiting for the user to approve it at PayPal. Nothing is charged and nothing is active until they do. | |
| message | Yes | A human-readable summary, including the approval link the user has to open. | |
| approval_url | Yes | URL the user must open to approve the subscription. ALWAYS share this URL with the user. |