vector_dot_product
Computes the dot product of two equal-length vectors and returns a scalar. Use for projections, angle calculations, or vector similarity.
Instructions
Computes the dot product of two equal-length vectors.
Args: vector_a: The first vector as a list of numbers. vector_b: The second vector as a list of numbers.
Returns: On success: {"result": } On error: {"error": }
Examples: >>> vector_dot_product([1, 2], [7, 8]) {'result': 23}
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_a": "<vector_a>",
"vector_b": "<vector_b>"
},
"name": "vector_dot_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vector_a | Yes | ||
| vector_b | Yes |