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 analyze data consumption patterns.

Instructions

Get a quick summary of API usage statistics

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The primary handler function that executes the 'thealeph_summary_stats' tool. It calls the API client's getSummaryStats method, formats the result into a markdown table, and handles errors.
    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}`; } }
  • src/tools.js:59-67 (registration)
    Tool registration in getToolDefinitions() method, defining the tool name, description, and input schema (no parameters required). This is used by the MCP server to expose the tool.
    { name: 'thealeph_summary_stats', description: 'Get a quick summary of API usage statistics', inputSchema: { type: 'object', properties: {}, required: [] } },
  • Input schema definition for the tool, specifying an empty object with no required properties.
    inputSchema: { type: 'object', properties: {}, required: [] }
  • Core API client helper that performs the actual HTTP GET request to the The Aleph API's summary stats endpoint.
    async getSummaryStats() { return this.makeRequest('GET', '/monitoring/stats/summary'); }
  • Dispatch case in executeTool switch statement that routes calls to the summaryStats handler.
    case 'thealeph_summary_stats': return this.summaryStats(params);

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