convert_units
Convert angle measurements between degrees and radians for mathematical calculations and trigonometric functions.
Instructions
Convert between angle units: degrees ↔ radians.
Examples:
DEGREES TO RADIANS: value=180, from_unit="degrees", to_unit="radians" Result: 3.14159... (π)
RADIANS TO DEGREES: value=3.14159, from_unit="radians", to_unit="degrees" Result: 180
RIGHT ANGLE: value=90, from_unit="degrees", to_unit="radians" Result: 1.5708... (π/2)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | Optional annotation to label this calculation (e.g., 'Bond A PV', 'Q2 revenue'). Appears in results for easy identification. | |
| output_mode | No | Output format: full (default), compact, minimal, value, or final. See batch_execute tool for details. | full |
| value | Yes | Value to convert (e.g., 180, 3.14159) | |
| from_unit | Yes | Source unit | |
| to_unit | Yes | Target unit |
Input Schema (JSON Schema)
{
"properties": {
"context": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Optional annotation to label this calculation (e.g., 'Bond A PV', 'Q2 revenue'). Appears in results for easy identification."
},
"from_unit": {
"description": "Source unit",
"enum": [
"degrees",
"radians"
],
"type": "string"
},
"output_mode": {
"default": "full",
"description": "Output format: full (default), compact, minimal, value, or final. See batch_execute tool for details.",
"enum": [
"full",
"compact",
"minimal",
"value",
"final"
],
"type": "string"
},
"to_unit": {
"description": "Target unit",
"enum": [
"degrees",
"radians"
],
"type": "string"
},
"value": {
"description": "Value to convert (e.g., 180, 3.14159)",
"type": "number"
}
},
"required": [
"value",
"to_unit",
"from_unit"
],
"type": "object"
}