cosine_similarity
Calculates the cosine similarity between two vectors, returning a value between -1 and 1 where 1 indicates identical direction. (cost: 1 credit)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cosine_similarity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vector_a | No | array of numbers, required, the first vector | |
| vector_b | No | array of numbers, required, the second vector (must be same length as vector_a) |