create_lead
Add new leads to your Hunter account by providing email addresses for business contact management.
Instructions
Create a lead in user's account.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"email": "<email>"
},
"name": "create_lead"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes |
Implementation Reference
- main.py:39-42 (handler)The handler function that executes the create_lead tool logic by posting the provided email to the Hunter API leads endpoint via HunterAPIClient.
async def create_lead(email: str) -> str: async with HunterAPIClient() as client: response = await client.post("leads", {"email": email}) return response - main.py:38-38 (registration)Registers the create_lead tool with the FastMCP server using the @mcp.tool decorator.
@mcp.tool(description="Create a lead in user's account.")