Skip to main content
Glama

provider_earnings

View your earnings breakdown on the402.ai, showing settled, held, and pending amounts to track provider payments.

Instructions

View your provider earnings breakdown on the402.ai. Shows settled (paid out), held (in escrow), and pending amounts. Requires API key (provider account).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The 'provider_earnings' tool is registered and implemented in 'src/tools/balance.ts'. The handler directly calls the client's 'authGet' method to fetch provider earnings from the '/v1/provider/earnings' endpoint.
    server.tool(
    	"provider_earnings",
    	"View your provider earnings breakdown on the402.ai. Shows settled (paid out), held (in escrow), and pending amounts. Requires API key (provider account).",
    	{},
    	async () => {
    		const result = await client.authGet("/v1/provider/earnings");
    		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