get_club_members
Retrieve the list of members for a specific Chess.com club by providing the club's URL identifier.
Instructions
Get members of a club on Chess.com
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url_id | Yes |
Input Schema (JSON Schema)
{
"properties": {
"url_id": {
"title": "Url Id",
"type": "string"
}
},
"required": [
"url_id"
],
"title": "get_club_membersArguments",
"type": "object"
}
Implementation Reference
- src/chess_mcp/server.py:224-237 (handler)The handler function decorated with @mcp.tool, which registers the tool and implements the logic to fetch club members from the Chess.com API using make_api_request.@mcp.tool(description="Get members of a club on Chess.com") async def get_club_members(url_id: str) -> Dict[str, Any]: """ Get members of a club on Chess.com. Args: url_id: The URL identifier of the club Returns: Club members data """ logger.info("Fetching club members", url_id=url_id) return await make_api_request(f"club/{url_id}/members")