Skip to main content
Glama

x402-cosine-similarity

Cosine Similarity: Cosine Similarity

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aNoA to process
bNoB to process
text1NoText1 to process
text2NoText2 to process

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / a
      Added value: +{
      +  "description": "A to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / b
      Added value: +{
      +  "description": "B to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / text1
      Added value: +{
      +  "description": "Text1 to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / text2
      Added value: +{
      +  "description": "Text2 to process",
      +  "type": "string"
      +}
  2. First observed

TDQS

D1.7/5.0
Behavior1/5

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.

Conciseness2/5

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.

Completeness1/5

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.

Parameters2/5

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.

Purpose2/5

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.

Usage Guidelines2/5

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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources