Skip to main content
Glama
NU-AquaLab

The Aleph MCP

by NU-AquaLab

thealeph_asn_hints

Retrieve geographic and network intelligence for Autonomous System Numbers to analyze network infrastructure and identify locations.

Instructions

Get geographic and network hints for an ASN

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
asnYesAutonomous System Number

Implementation Reference

  • The main handler function 'asnHints' that processes parameters, calls the API client, and formats the geographic hints response for the tool.
    async asnHints(params) { try { const { asn } = params; const result = await this.client.getASNHints(asn); let response = `πŸ’‘ Geographic Hints for ASN ${asn}\n\n`; if (typeof result === 'object' && Object.keys(result).length > 0) { for (const [key, value] of Object.entries(result)) { response += `**${key}:** ${JSON.stringify(value, null, 2)}\n`; } } else { response += 'No hints available for this ASN.'; } return response; } catch (error) { return `❌ Failed to retrieve ASN hints: ${error.message}`; }
  • The input schema definition for the 'thealeph_asn_hints' tool, specifying the required 'asn' string parameter.
    { name: 'thealeph_asn_hints', description: 'Get geographic and network hints for an ASN', inputSchema: { type: 'object', properties: { asn: { type: 'string', description: 'Autonomous System Number' } }, required: ['asn'] }
  • src/tools.js:242-243 (registration)
    Tool registration in the executeTool switch statement, dispatching to the asnHints handler.
    case 'thealeph_asn_hints': return this.asnHints(params);
  • Helper method in the API client that performs the HTTP GET request to retrieve ASN hints from the backend API endpoint.
    /** * Get hints by ASN */ async getASNHints(asn) { return this.makeRequest('GET', `/api/asn/${asn}/hints`); }

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