Skip to main content
Glama

get_platform_info

Retrieve platform health, status, available endpoints, and referral program details for the402.ai marketplace to understand service offerings and get started.

Instructions

Get the402.ai platform health, status, available endpoints, and referral program details. Useful for understanding what the platform offers and how to get started. No authentication required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for get_platform_info, which fetches health and referral program details.
    async () => {
    	const [health, referralProgram] = await Promise.all([
    		client.get("/health"),
    		client.get("/v1/referrals/program"),
    	]);
    	return {
    		content: [
    			{
    				type: "text" as const,
    				text: JSON.stringify(
    					{ health, referral_program: referralProgram },
    					null,
    					2
    				),
    			},
    		],
    	};
  • Registration of the get_platform_info tool using server.tool.
    server.tool(
    	"get_platform_info",
    	"Get the402.ai platform health, status, available endpoints, and referral program details. Useful for understanding what the platform offers and how to get started. No authentication required.",
    	{},
    	async () => {
    		const [health, referralProgram] = await Promise.all([
    			client.get("/health"),
    			client.get("/v1/referrals/program"),
    		]);
    		return {
    			content: [
    				{
    					type: "text" as const,
    					text: JSON.stringify(
    						{ health, referral_program: referralProgram },
    						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