thealeph_asn_hints
Retrieve geographic and network intelligence for Autonomous System Numbers to analyze network infrastructure and connectivity patterns.
Instructions
Get geographic and network hints for an ASN
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asn | Yes | Autonomous System Number |
Implementation Reference
- src/tools.js:439-458 (handler)Main handler function that extracts ASN parameter, calls client.getASNHints, formats the response with geographic hints or error message.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}`; }
- src/tools.js:113-124 (schema)Input schema definition requiring 'asn' as string.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 asnHints handler.case 'thealeph_asn_hints': return this.asnHints(params);
- src/client.js:123-127 (helper)API client helper that performs HTTP GET to /api/asn/{asn}/hints endpoint.* Get hints by ASN */ async getASNHints(asn) { return this.makeRequest('GET', `/api/asn/${asn}/hints`); }