list_plans
Browse available subscription plans on the402.ai marketplace to discover bundled services at recurring prices. View plans without authentication required.
Instructions
Browse subscription plans on the402.ai. Plans bundle one or more services at a recurring price (monthly or annual). Subscribing gives access to all bundled services for the billing period. No authentication required.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Results per page (default: 20) | |
| offset | No | Pagination offset |
Implementation Reference
- src/tools/subscriptions.ts:13-24 (handler)The handler logic for the 'list_plans' tool, which fetches subscription plans from the API.
async ({ limit, offset }) => { const params: Record<string, string> = {}; if (limit !== undefined) params.limit = String(limit); if (offset !== undefined) params.offset = String(offset); const result = await client.get("/v1/plans", params); return { content: [ { type: "text" as const, text: JSON.stringify(result, null, 2) }, ], }; } - src/tools/subscriptions.ts:6-12 (registration)Registration of the 'list_plans' tool, including its schema definition.
server.tool( "list_plans", "Browse subscription plans on the402.ai. Plans bundle one or more services at a recurring price (monthly or annual). Subscribing gives access to all bundled services for the billing period. No authentication required.", { limit: z.number().optional().describe("Results per page (default: 20)"), offset: z.number().optional().describe("Pagination offset"), },