distance_from_parallax
Convert parallax in milliarcseconds to distance in parsecs, rejecting non-positive values to avoid undefined results.
Instructions
Convert a parallax in milliarcseconds to a distance in parsecs.
Rejects non-positive parallaxes, for which distance is undefined, rather than returning a nonsense number.
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": {
"parallax_mas": "<parallax_mas>"
},
"name": "distance_from_parallax"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parallax_mas | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | ||
| error | No | ||
| value | Yes |