Skip to main content
Glama
theagoralabs

Theagora MCP Server

by theagoralabs

my_sales

Read-only

Check daily earnings and settled transactions for service providers in the Theagora marketplace.

Instructions

Check how much you've earned today as a provider. Shows settled transactions and total revenue for the current day.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The my_sales tool handler - executes when the tool is called, retrieves today's earnings from the API client and returns formatted JSON response
    // my_sales — View today's earnings
    server.tool(
      'my_sales',
      "Check how much you've earned today as a provider. Shows settled transactions and total revenue for the current day.",
      {},
      { readOnlyHint: true, openWorldHint: true },
      async () => {
        const result = await client.getEarnedToday();
        return {
          content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2) }],
        };
      }
    );
  • Tool registration for my_sales in the registerSellingTools function, defining the tool name, description, empty input schema, and hints
    // my_sales — View today's earnings
    server.tool(
      'my_sales',
      "Check how much you've earned today as a provider. Shows settled transactions and total revenue for the current day.",
      {},
      { readOnlyHint: true, openWorldHint: true },
      async () => {
        const result = await client.getEarnedToday();
        return {
          content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2) }],
        };
      }
    );
  • API client method getEarnedToday that makes HTTP GET request to /transactions/earned-today endpoint
    async getEarnedToday(): Promise<any> {
      return this.request('/transactions/earned-today');
    }
  • Empty input schema {} indicating the my_sales tool takes no parameters
    {},

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/theagoralabs/mcp'

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