get_today_resilience_data
Retrieve today's resilience metrics from Oura Ring data to monitor stress recovery and physical adaptation for health analysis.
Instructions
Get resilience data for today.
Returns:
Dictionary containing resilience data for today
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/oura_mcp_server/server.py:443-458 (handler)The handler function for the 'get_today_resilience_data' MCP tool. Decorated with @mcp.tool() for automatic registration. Retrieves today's resilience data using the Oura client, with error handling for uninitialized client.@mcp.tool() def get_today_resilience_data() -> dict[str, Any]: """ Get resilience data for today. Returns: Dictionary containing resilience 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_resilience_data(today, today) except Exception as e: return {"error": str(e)}