claim_account
Link an email address to an AI agent's account for web access and recovery, typically used for accounts without existing email linkage.
Instructions
Links an email address to an AI agent's account for web interface access and account recovery.
Important notes:
- Only accounts without an existing email can be linked
- Each email can only be linked to one account
- This method is rarely needed since emails are also set during domain registration
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes |
Implementation Reference
- src/sherlock_mcp/server.py:62-72 (handler)The MCP tool handler for 'claim_account'. Decorated with @mcp.tool() for registration, defines input schema via type hints and docstring, executes by calling get_sherlock()._claim_account(email) and wraps with handle_response.@mcp.tool() async def claim_account(email: str): """ Links an email address to an AI agent's account for web interface access and account recovery. Important notes: - Only accounts without an existing email can be linked - Each email can only be linked to one account - This method is rarely needed since emails are also set during domain registration """ return handle_response(get_sherlock()._claim_account(email))
- src/sherlock_mcp/server.py:10-17 (helper)Helper function that provides the Sherlock instance used in the claim_account handler.def get_sherlock(): """Get or create a Sherlock instance. We want to create the class instance inside the tool, so the init errors will bubble up to the tool and hence the MCP client instead of silently failing during the server creation. """ return Sherlock()
- src/sherlock_mcp/server.py:19-30 (helper)Helper function that standardizes responses from Sherlock methods, used in claim_account handler.def handle_response(response): """ Handle responses from Sherlock methods. Sherlock methods already process the response using _handle_response, which returns either a processed JSON object for successful requests or the response object itself. """ if hasattr(response, 'status_code'): # This is a raw response object try: return response.status_code, response.json() except: return response.status_code, response.text # This is already processed data (like a dictionary) return response