Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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) },
    			],
    		};
    	}
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/the402ai/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server