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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "hunter_account_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:593-627 (handler)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, }; } } - src/index.ts:115-123 (schema)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, ], })); - src/index.ts:151-153 (schema)TypeScript interface defining the empty parameters for the hunter_account_info tool.
interface AccountInfoParams { // No parameters needed } - src/index.ts:310-315 (helper)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 ); }