Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as minia2a — hosted x402 API marketplace (HTTP). If you published it, claim ownership there.

x402-weighted-median

Weighted Median: Weighted median. Takes values and weights. Returns the median as result. 🆓 5 free trial calls per signed wallet

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "values": "<values>",
      "weights": "<weights>"
    },
    "name": "x402-weighted-median"
  }
}

Input Schema

NameRequiredDescriptionDefault
valuesYes
weightsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "values",
      +  "weights"
      +]
  2. Changed2 schema fields changed
    • removedInput schema / properties / values / description
      Removed value: -"Values to process"
    • removedInput schema / properties / weights / description
      Removed value: -"Weights to process"
  3. Changed2 schema fields changed
    • addedInput schema / properties / values
      Added value: +{
      +  "description": "Values to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / weights
      Added value: +{
      +  "description": "Weights to process",
      +  "type": "string"
      +}
  4. 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 must carry the behavioral burden. It discloses that the result is the median and mentions 5 free trial calls per signed wallet, but it does not explain the signing requirement, input validation behavior, or what happens after the trial quota is exhausted.

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?

The description is very short and front-loaded, with no wasted elaboration. The opening “Weighted Median: Weighted median.” is redundant, but the overall structure remains compact.

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 statistical tool, an agent still needs enough detail to construct valid calls. The input string encoding and output representation are left unspecified, and there is no output schema to fill that gap.

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%, and both values and weights are bare string parameters. The description only repeats the parameter names and gives no format guidance, no explanation of how arrays are encoded, and no constraint that values and weights must align.

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?

The description names the operation as a weighted median, states that it takes values and weights, and says it returns the median. It is clear enough to identify the computation, but it does not distinguish this tool from siblings such as weighted-average, weighted-mean, or median, and the opening phrase simply repeats the tool name.

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 about when to use this tool instead of weighted-average, weighted-mean, or plain median. The free-trial note provides pricing context, not usage criteria.

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