flowcheck_upgrade
Upgrade your FlowCheck plan to access more credits by creating a Stripe Checkout session for payment processing.
Instructions
Create a Stripe Checkout session to upgrade your plan. Returns a checkout URL the user must visit to complete payment. Plans: starter ($4.99/mo, 1,000 credits), growth ($19/mo, 5,000 credits), pro ($49/mo, 15,000 credits).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | Target plan to upgrade to |
Implementation Reference
- src/tools/billing.ts:38-43 (handler)The handler implementation for the flowcheck_upgrade tool, which makes a request to the /billing/upgrade endpoint.
async ({ plan }) => { const result = await client.request("POST", "/billing/upgrade", { body: { plan }, }); return { content: [{ type: "text" as const, text: result }] }; }, - src/tools/billing.ts:24-44 (registration)The registration of the flowcheck_upgrade tool including its schema and handler.
server.registerTool( "flowcheck_upgrade", { title: "Upgrade Plan", description: "Create a Stripe Checkout session to upgrade your plan. " + "Returns a checkout URL the user must visit to complete payment. " + "Plans: starter ($4.99/mo, 1,000 credits), growth ($19/mo, 5,000 credits), pro ($49/mo, 15,000 credits).", inputSchema: z.object({ plan: z .enum(["starter", "growth", "pro"]) .describe("Target plan to upgrade to"), }), }, async ({ plan }) => { const result = await client.request("POST", "/billing/upgrade", { body: { plan }, }); return { content: [{ type: "text" as const, text: result }] }; }, );