summarize_glucose_file
Analyze a glucose meter CSV to return period covered, mean, standard deviation, CV, time-in-range zone shares, and breakdowns by meal context and time of day.
Instructions
Read a glucose meter CSV file and return descriptive statistics.
Returns the period covered, mean, standard deviation, coefficient of variation (CV), the share of readings in each zone (very low, low, in range, high, very high), and breakdowns by meal context and time of day. All values are in mmol/L.
Args: file_path: A file name from list_glucose_files (looked up in the data folder), or a full path to a CSV file. last_days: Only analyze the last N days of the file (counted back from the most recent reading). Omit to analyze the whole file. very_low: Level 2 hypoglycemia threshold in mmol/L (below = very low). low: Hypoglycemia threshold in mmol/L (below = low). high: Hyperglycemia threshold in mmol/L (above = high). very_high: Level 2 hyperglycemia threshold in mmol/L (above = very high).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "summarize_glucose_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| low | No | ||
| high | No | ||
| very_low | No | ||
| file_path | Yes | ||
| last_days | No | ||
| very_high | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||