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. Use this tool for accounts without an existing email; each email can only be linked once. Helps manage accounts effectively.

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

  • MCP tool handler function for 'claim_account'. It takes an email parameter, calls the underlying Sherlock._claim_account method via get_sherlock(), and wraps the response using 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))
  • Input schema defined by function parameter 'email: str' and comprehensive docstring describing usage, constraints, and purpose.
    @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))
  • The @mcp.tool() decorator registers the claim_account function as an MCP tool on the FastMCP server instance.
    @mcp.tool()
  • Helper function to lazily create and return the Sherlock instance used by claim_account and other tools.
    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 to standardize 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

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

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