get_club_profile
Retrieve detailed information about Chess.com clubs using their URL identifier to access club profiles and data.
Instructions
Get information about a club on Chess.com
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url_id | Yes |
Implementation Reference
- src/chess_mcp/server.py:209-221 (handler)The `@mcp.tool` decorated handler function that implements the `get_club_profile` tool. It takes a `url_id` parameter, logs the request, and fetches the club profile data from the Chess.com API endpoint `/club/{url_id}` using the shared `make_api_request` helper.@mcp.tool(description="Get information about a club on Chess.com") async def get_club_profile(url_id: str) -> Dict[str, Any]: """ Get information about a club on Chess.com. Args: url_id: The URL identifier of the club Returns: Club profile data """ logger.info("Fetching club profile", url_id=url_id) return await make_api_request(f"club/{url_id}")