Skip to main content
Glama

create_report

Idempotent

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

NameRequiredDescriptionDefault
lowNo
highNo
languageNoen
very_lowNo
file_pathYes
last_daysNo
very_highNo
patient_nameNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), the description discloses where output lands (an HTML file in the 'reports' subfolder of the data folder), that it is browser-openable and printable or savable as PDF, and notably that 'points to discuss' are detected by fixed rules, not AI — an important trust/expectation signal. It does not state overwrite behavior when a report with the same name already exists, which is the one behavioral gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Structure is good: a front-loaded purpose/summary paragraph followed by a scannable Args block, so the agent gets the gist in the first sentence. A few clauses are redundant, such as restating that it can be opened in any browser and printed or saved as PDF after already calling it 'one-page printable', but nothing is seriously bloated.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an eight-parameter write tool, everything an agent needs to call it correctly is present: purpose, output artifact location and format, parameter semantics with defaults, and the fixed-rules caveat on recommendations. Return-value detail is covered by the existing output schema, so no further explanation is required.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry the load, and it documents all eight parameters: file_path's accepted forms, language values 'fr'/'en' plus the practical instruction to use the person's language, last_days semantics ('counted back from the most recent reading') with sensible examples, patient_name's optional placement, and the four threshold parameters identified as mmol/L hypo/hyper thresholds at levels 1 and 2. This adds units, semantics and defaults that the schema titles alone do not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('Create a one-page printable report') plus the intended use case (a medical appointment), then enumerates the report's contents (key statistics, distributions, time-of-day/meal breakdowns, rule-based 'points to discuss'). That is far more than the bare title and makes clear it produces an artifact rather than returning analysis, distinguishing it from list_glucose_files and summarize_glucose_file.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear operating context ('to bring to a medical appointment') and routes parameter sourcing explicitly: file_path comes 'from list_glucose_files, or a full path', and last_days suggests common choices of 14 or 30, omitted for the whole file. It stops short of explicit when-not guidance or naming summarize_glucose_file as the lighter-weight alternative for non-printable analysis.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.