create_report
Generates a one-page printable HTML glucose report for medical appointments, summarizing key statistics, reading distributions, time-of-day and meal breakdowns, and rule-based discussion points.
Instructions
Create a one-page printable report to bring to a medical appointment.
The report is an HTML file saved in the "reports" subfolder of the data folder. It contains the key statistics, the distribution of readings, the breakdowns by time of day and meal context, and "points to discuss" detected by fixed rules (not by AI). It can be opened in any browser and printed or saved as PDF.
Args: file_path: A file name from list_glucose_files, or a full path. language: Report language: "fr" (French) or "en" (English). Use the person's language when it is one of these. last_days: Only include the last N days (counted back from the most recent reading). Common choices: 14 or 30. Omit for the whole file. patient_name: Optional name printed at the top of the report. very_low: Level 2 hypoglycemia threshold in mmol/L. low: Hypoglycemia threshold in mmol/L. high: Hyperglycemia threshold in mmol/L. very_high: Level 2 hyperglycemia threshold in mmol/L.
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": "create_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| low | No | ||
| high | No | ||
| language | No | en | |
| very_low | No | ||
| file_path | Yes | ||
| last_days | No | ||
| very_high | No | ||
| patient_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||