x402-cosine-similarity
Cosine Similarity: Cosine Similarity
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | A to process | |
| b | No | B to process | |
| text1 | No | Text1 to process | |
| text2 | No | Text2 to process |
Cosine Similarity: Cosine Similarity
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | A to process | |
| b | No | B to process | |
| text1 | No | Text1 to process | |
| text2 | No | Text2 to process |
Changes observed during successful MCP inspections.
Input schema / properties / aAdded value: +{
+ "description": "A to process",
+ "type": "string"
+}Input schema / properties / bAdded value: +{
+ "description": "B to process",
+ "type": "string"
+}Input schema / properties / text1Added value: +{
+ "description": "Text1 to process",
+ "type": "string"
+}Input schema / properties / text2Added value: +{
+ "description": "Text2 to process",
+ "type": "string"
+}Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full behavioral burden, and it discloses nothing: not the return value (a 0-1 score? -1 to 1?), not whether inputs are tokenized or whitespace-split, not any length limits. For a 4-parameter tool with zero annotation coverage this is a complete gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
It is short, but that is under-specification rather than conciseness. The single redundant clause repeats the title verbatim and earns no place, while the information an agent actually needs is absent.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Four parameters, none required, no annotations, no output schema, and a description that explains neither inputs nor outputs. Given the ambiguity between the a/b and text1/text2 parameter pairs, the definition is not sufficient for an agent to invoke the tool correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is nominally 100%, but the schema labels are placeholders ('A to process', 'Text1 to process'), so the structured data conveys no real semantics. The description adds nothing to clarify the critical ambiguity: there are two interchangeable-looking pairs (a/b and text1/text2) and no statement of which to supply or whether all four are needed.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description 'Cosine Similarity: Cosine Similarity' merely restates the tool name twice with no verb, no input/output framing, and no scope. It does not distinguish this tool from the many sibling similarity tools (x402-text-similarity, x402-jaccard-similarity, x402-bigram-similarity, x402-string-similarity), so an agent cannot tell why it would pick this one.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no guidance on when to use this tool, when not to, or which sibling similarity metric is the alternative. Nothing about whether it works on raw strings, tokenized text, or vectors is stated, leaving selection entirely to inference from the name.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.