convert_dose_units
Convert medication doses between grams, milligrams, micrograms, and nanograms with reliable unit conversion.
Instructions
Convert between dose units (g, mg, mcg, ng). Agent contract: use structuredContent as the source of truth; preserve schema_version/status/sources/warnings/errors/meta when forwarding the result and never infer missing clinical facts.
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": {
"value": "<value>",
"from_unit": "<from_unit>",
"to_unit": "<to_unit>"
},
"name": "convert_dose_units"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| locale | No | BCP 47 locale for labels and messages (for example zh-TW). | zh-TW |
| to_unit | Yes | ||
| from_unit | Yes | ||
| output_format | No | Text rendering. structuredContent always follows the versioned outputSchema. | json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| meta | Yes | ||
| errors | Yes | ||
| status | Yes | ||
| sources | Yes | ||
| warnings | Yes | ||
| schema_version | Yes |