Skip to main content
Glama

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
NameRequiredDescriptionDefault
limitNoResults per page (default: 20)
offsetNoPagination offset

Implementation Reference

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

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