list_purchases
Retrieve your purchased digital products from the402.ai marketplace to view download status and manage acquired services.
Instructions
List your purchased digital products on the402.ai. Shows products you've bought with download status. Requires API key.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/products.ts:32-44 (handler)The 'list_purchases' tool is registered and implemented directly in 'src/tools/products.ts' using the McpServer instance. It calls 'client.authGet("/v1/purchases")' to retrieve the list of purchased products.
server.tool( "list_purchases", "List your purchased digital products on the402.ai. Shows products you've bought with download status. Requires API key.", {}, async () => { const result = await client.authGet("/v1/purchases"); return { content: [ { type: "text" as const, text: JSON.stringify(result, null, 2) }, ], }; } );