vector_magnitude
Calculate the Euclidean length of a numeric vector and return its scalar magnitude for math, physics, or data analysis tasks.
Instructions
Computes the magnitude of a vector.
Args: vector: A vector as a list of numbers.
Returns: On success: {"result": } On error: {"error": }
Examples: >>> vector_magnitude([1, 2, 3]) {'result': 3.7416573867739413}
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": {
"vector": "<vector>"
},
"name": "vector_magnitude"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vector | Yes |