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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/discovery.ts:83-99 (handler)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 ), }, ], }; - src/tools/discovery.ts:79-99 (registration)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 ), }, ], };