get_today_readiness_data
Retrieve today's readiness data from the Oura API to assess physical recovery and plan daily activities based on body signals.
Instructions
Get readiness data for today.
Returns:
Dictionary containing readiness data for today
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/oura_mcp_server/server.py:425-441 (handler)The core handler function decorated with @mcp.tool(), which registers and implements the tool logic. It fetches today's readiness data using the Oura client or returns an error if not initialized.@mcp.tool() def get_today_readiness_data() -> dict[str, Any]: """ Get readiness data for today. Returns: Dictionary containing readiness data for today """ if oura_client is None: return {"error": "Oura client not initialized. Please provide an access token."} try: today = date.today() return oura_client.get_readiness_data(today, today) except Exception as e: return {"error": str(e)}