x402-weighted-average
Weighted Average: Average of weighted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | No | Values to process | |
| weights | No | Weights to process |
Weighted Average: Average of weighted.
| Name | Required | Description | Default |
|---|---|---|---|
| values | No | Values to process | |
| weights | No | Weights to process |
Changes observed during successful MCP inspections.
Input schema / properties / valuesAdded value: +{
+ "description": "Values to process",
+ "type": "string"
+}Input schema / properties / weightsAdded value: +{
+ "description": "Weights to process",
+ "type": "string"
+}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.
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.
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.
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.
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.
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.
Add one secure layer between your agents and this server.