pol
Convert rectangular coordinates (x, y) to polar form (r, θ) with selectable degree or radian angle mode. Returns radius and angle for given inputs.
Instructions
When: convert rectangular (x,y) to polar (r,θ). Prefer over manual atan2 for this mode. Params: x, y; angle_mode for θ (default deg). Example: x=2, y=2, angle_mode="deg" → r≈2.828, θ=45.
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": {
"x": "<x>",
"y": "<y>"
},
"name": "pol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| angle_mode | No | deg |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |