Skip to main content
Glama

hunter_account_info

Retrieve detailed account information for managing and monitoring usage, limits, and configurations related to the Hunter.io API integration.

Instructions

Get information regarding your Hunter account.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'hunter_account_info' tool within the CallToolRequestSchema switch statement. It validates parameters using isAccountInfoParams, calls the Hunter.io /account API with retry logic, and returns the account information as JSON or an error.
    case 'hunter_account_info': { if (!isAccountInfoParams(args)) { throw new McpError( ErrorCode.InvalidParams, 'Invalid arguments for hunter_account_info' ); } try { // Hunter.io API expects query parameters for account info const response = await withRetry( async () => apiClient.get('/account'), 'account info' ); return { content: [ { type: 'text', text: JSON.stringify(response.data, null, 2), }, ], isError: false, }; } catch (error) { const errorMessage = axios.isAxiosError(error) ? `API Error: ${error.response?.data?.message || error.message}` : `Error: ${error instanceof Error ? error.message : String(error)}`; return { content: [{ type: 'text', text: errorMessage }], isError: true, }; } }
  • The Tool schema definition for 'hunter_account_info', including name, description, and empty inputSchema since no parameters are required.
    const ACCOUNT_INFO_TOOL: Tool = { name: 'hunter_account_info', description: 'Get information regarding your Hunter account.', inputSchema: { type: 'object', properties: {}, required: [], }, };
  • src/index.ts:424-431 (registration)
    Registration of the 'hunter_account_info' tool (as ACCOUNT_INFO_TOOL) in the listTools response array.
    tools: [ FIND_EMAIL_TOOL, VERIFY_EMAIL_TOOL, DOMAIN_SEARCH_TOOL, EMAIL_COUNT_TOOL, ACCOUNT_INFO_TOOL, ], }));
  • TypeScript interface defining the empty parameters for the hunter_account_info tool.
    interface AccountInfoParams { // No parameters needed }
  • Type guard function to validate arguments for the hunter_account_info tool, ensuring it's an object.
    function isAccountInfoParams(args: unknown): args is AccountInfoParams { return ( typeof args === 'object' && args !== null ); }

Other Tools

Related Tools

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/Meerkats-Ai/hunter-io-mcp-server'

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