Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-weighted-mean

Weighted Mean: Weighted mean. Takes values and weights (equal length). Returns the mean as result. 🆓 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-weighted-mean"
  }
}

Input Schema

NameRequiredDescriptionDefault
valuesNo
weightsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / values / description
      Removed value: -"Values to process"
    • removedInput schema / properties / weights / description
      Removed value: -"Weights to process"
  2. First observed

TDQS

C2.4/5.0
Behavior2/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. It discloses only the equal-length input constraint and that the result is a mean; it says nothing about error behavior for mismatched lengths, how string-encoded inputs are parsed, or the response shape, and the trailing promo line about free trial calls adds marketing rather than behavioral context.

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

Conciseness3/5

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

Very short and front-loaded, but the first clause is redundant with the tool name and the pricing/trial sentence is promotional noise that does not help invocation.

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 simple math tool this should be easy to complete, yet the string-encoded parameter format, optionality of both parameters (0 required), and return format are all left unexplained with no output schema to compensate. An agent could not reliably construct a call from this definition alone.

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% for both parameters, and both are typed only as strings with no format specified. The description adds one real constraint (values and weights must be equal length), but leaves the critical ambiguity unresolved: whether inputs are comma-separated lists, JSON arrays, or single numbers.

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

Purpose3/5

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

The description names the operation and its inputs ("Takes values and weights") and the output ("Returns the mean as result"), which is more than a pure restatement of the name, but the opening "Weighted Mean: Weighted mean" is circular and nothing distinguishes it from the near-identical sibling x402-weighted-average.

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 guidance on when to use this versus the many sibling mean tools (weighted-average, weighted-median, arithmetic mean, etc.), and no prerequisites or exclusions stated. The agent must infer selection purely 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.