search_health_records_es
Query and retrieve Apple Health records from Elasticsearch by defining search parameters such as record type, source, date range, and values. Use this tool to extract structured health data for analysis or display.
Instructions
Search health records in Elasticsearch with flexible query building.
Parameters:
- params: HealthRecordSearchParams object containing all search/filter parameters.
Notes for LLMs:
- This function should return a list of health record documents (dicts) matching the search criteria.
- Each document in the list should represent a single health record as stored in Elasticsearch.
- If an error occurs, the function should return a list with a single dict containing an 'error' key and the error message.
- Use this to retrieve structured health data for further analysis, filtering, or display.
- Example source_name: "Rob’s iPhone", "Polar Flow", "Sync Solver".
- Example date_from/date_to: "2020-01-01T00:00:00+00:00"
- Example value_min/value_max: "10", "100.5"
- IMPORTANT - Do not guess, auto-fill, or assume any missing data.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
params | Yes |