@mcp.tool() deflogin_to_BUPT_JiaoWu_website(context: dict) -> str: """ Login to the BUPT website. This is the first login, it will let you to get the access to the website. You don't need to run this tool anymore, unless you want to change your username or password. You need to provide the username and password. Args: username: The username to login with. password: The password to login with. Returns: The result of the login. """ # 在 """ 中间的内容 """ 是大模型可以读取的工具说明 username = context.get('username') password = context.get('password') mylogin.username = username mylogin.password = password if mylogin.login().status_code == 200: mylogin.is_login = True return {"ok": True, "message": "Login successful"} else: return {"ok": False, "message": "Login failed"}