Skip to main content
Glama

x402-weighted-average

Weighted Average: Average of weighted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valuesNoValues to process
weightsNoWeights to process

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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"
      +}
  2. First observed

TDQS

D1.9/5.0
Behavior1/5

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

No annotations are provided and the description discloses nothing about behavior: no indication of how values/weights are combined, error handling for mismatched lengths, return format, or determinism. For a tool with zero structured behavioral 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 the brevity stems from under-specification rather than efficient communication. The single clause adds no information the name did not already convey.

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?

With no annotations, no output schema, and a description that restates the name, an agent has almost nothing to work with for correct invocation. Even minimal detail on input format, weight semantics, or the relationship between the two arrays is absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema documents both parameters (values, weights) and the baseline is 3. The description adds no additional meaning beyond the schema — no format, delimiter, or expected-length guidance — but the schema carries the documented load.

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 'Weighted Average: Average of weighted' is a tautology that merely restates the tool name. It does not explain the computation or distinguish this tool from near-identical siblings such as x402-weighted-mean or x402-weighted-median.

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 is given about when to use this tool versus the many other averaging tools in the sibling list (weighted-mean, weighted-median, mean-of, harmonic-mean). The agent is left to infer everything.

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