Skip to main content
Glama

get_workouts

Retrieve workout details for a specific time period from your health data, with timestamps automatically converted to your local time zone.

Instructions

Get details about the workouts that the user has done during a period of time. Result timestamps will include time zones. Always translate timestamps to the user's local time zone when this is known.

Args: start_time: The starting time of the period. Must include tz (ISO8601). end_time: the ending time of the period. Must include tz (ISO8601).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
start_timeYes
end_timeYes

Implementation Reference

  • The handler function for the 'get_workouts' tool. It is decorated with @mcp.tool() for automatic registration. Fetches workouts from FulcraAPI.apple_workouts between the given datetime range and returns a JSON string summary.
    @mcp.tool() async def get_workouts(start_time: datetime, end_time: datetime) -> str: """Get details about the workouts that the user has done during a period of time. Result timestamps will include time zones. Always translate timestamps to the user's local time zone when this is known. Args: start_time: The starting time of the period. Must include tz (ISO8601). end_time: the ending time of the period. Must include tz (ISO8601). """ fulcra = get_fulcra_object() workouts = fulcra.apple_workouts(start_time, end_time) return f"Workouts during {start_time} and {end_time}: " + json.dumps(workouts)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fulcradynamics/fulcra-context-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server