Skip to main content
Glama
NU-AquaLab

The Aleph MCP

by NU-AquaLab

thealeph_summary_stats

Retrieve API usage statistics to monitor network intelligence operations and track data consumption patterns.

Instructions

Get a quick summary of API usage statistics

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function that fetches summary statistics from the API client and formats the response as a markdown summary.
    async summaryStats(params) {
      try {
        const result = await this.client.getSummaryStats();
    
        let response = '📈 API Usage Summary\n\n';
    
        if (typeof result === 'object') {
          for (const [key, value] of Object.entries(result)) {
            response += `**${key}:** ${JSON.stringify(value, null, 2)}\n`;
          }
        } else {
          response += `${JSON.stringify(result, null, 2)}`;
        }
    
        return response;
    
      } catch (error) {
        return `❌ Failed to retrieve summary statistics: ${error.message}`;
      }
    }
  • Tool schema definition including name, description, and empty input schema (no parameters required).
    {
      name: 'thealeph_summary_stats',
      description: 'Get a quick summary of API usage statistics',
      inputSchema: {
        type: 'object',
        properties: {},
        required: []
      }
    },
  • src/tools.js:234-235 (registration)
    Tool registration in the executeTool switch statement, dispatching to the summaryStats handler.
    case 'thealeph_summary_stats':
      return this.summaryStats(params);
  • API client helper method that makes the HTTP GET request to the summary stats endpoint.
     * Get summary statistics
     */
    async getSummaryStats() {
      return this.makeRequest('GET', '/monitoring/stats/summary');

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/NU-AquaLab/thealeph-mcp'

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