Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-cosine-similarity

Cosine Similarity: Computes cosine similarity between two texts as bag-of-words vectors, returning 0 if either is empty 🆓 5 free trial calls per signed wallet

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": "x402-cosine-similarity"
  }
}

Input Schema

NameRequiredDescriptionDefault
aNo
bNo
text1No
text2No

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / properties / a / description
      Removed value: -"A to process"
    • removedInput schema / properties / b / description
      Removed value: -"B to process"
    • removedInput schema / properties / text1 / description
      Removed value: -"Text1 to process"
    • removedInput schema / properties / text2 / description
      Removed value: -"Text2 to process"
  2. First observed

TDQS

C2.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It usefully discloses the bag-of-words method, the edge case behavior ('returning 0 if either is empty'), and the x402 pricing/trial context ('5 free trial calls per signed wallet'). It does not state the output scale (e.g., 0–1), tokenization/case handling, or error behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One front-loaded sentence for the operation, followed by a brief pricing tagline; nothing is padded. Slightly more length would have been justified to disambiguate the parameters, but as written it is tight.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a paid, zero-annotation tool with 0% schema coverage, no output schema, and six undocumented parameter relationships, the definition is under-specified. The most critical missing piece is parameter disambiguation, without which an agent cannot reliably invoke the tool.

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 description coverage is 0% with four undocumented parameters, and the definition creates ambiguity rather than resolving it: it refers to 'two texts' while the schema exposes both a/b and text1/text2, with none required. An agent has no way to know whether these are aliases, which pair to populate, or what happens if both are supplied.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb, resource, and method: 'Computes cosine similarity between two texts as bag-of-words vectors.' The method detail helps, but it offers no differentiation from close siblings like x402-jaccard-similarity, x402-text-similarity, or x402-string-similarity, so an agent still cannot pick between them from the description alone.

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?

No when-to-use or when-not-to-use guidance is given, and no alternative is named. Given the dense cluster of similarity siblings (jaccard, levenshtein, bigram, string-similarity, text-similarity), the omission of any routing hint is a real gap.

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.