Skip to main content
Glama
Fewsats
by Fewsats

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
NameRequiredDescriptionDefault
emailYes

Implementation Reference

  • 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))
  • 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()
  • 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

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/Fewsats/sherlock-mcp'

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