Skip to main content
Glama

get_workouts

Retrieve workout details for a specific time period from Fulcra Context MCP. Input start and end timestamps with time zones; results are translated to the user's 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
end_timeYes
start_timeYes

Implementation Reference

  • The handler function for the 'get_workouts' tool, registered via @mcp.tool() decorator. It fetches workouts from FulcraAPI.apple_workouts between start_time and end_time, formats as JSON string.
    @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)

Other Tools

Related Tools

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