Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-moving-average

Moving Average: Simple moving average. Takes values (alias data) and period (alias window, default 5). Returns result with period, movingAverage and latest. 🆓 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>"
    },
    "name": "x402-moving-average"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNo
periodNo
valuesYes
windowNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "values"
      +]
  2. Changed4 schema fields changed
    • removedInput schema / properties / data / description
      Removed value: -"Data to process"
    • removedInput schema / properties / period / description
      Removed value: -"Period to process"
    • removedInput schema / properties / values / description
      Removed value: -"Values to process"
    • removedInput schema / properties / window / description
      Removed value: -"Window to process"
  3. First observed

TDQS

B3.2/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden. It does disclose the return shape (period, movingAverage, latest) and a billing/quota constraint ("5 free trial calls per signed wallet"), but says nothing about error behavior, input validation, or what happens when period exceeds the number of values.

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?

Three compact sentences, front-loaded with the operation and followed by inputs and outputs; nothing is redundant. The emoji pricing tag is slightly informal but conveys quota information efficiently.

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

Completeness3/5

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

Return fields are described, which compensates for the absent output schema, and aliases/defaults are covered. Given four undocumented schema properties and no annotations, an agent still lacks the input encoding format and any failure-mode information needed to call it confidently.

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?

With 0% schema coverage and four properties in the schema, the description usefully resolves the aliasing (values/data, period/window) and gives the default of 5, which the schema does not. However, it never explains how multiple values are passed in the string-typed "values" field or why the numeric params are typed as strings, leaving the most failure-prone detail undocumented.

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 a specific verb+resource ("Simple moving average") and states the inputs and outputs, which distinguishes it from siblings like x402-weighted-average and x402-moving-sum without naming them. It stops short of explicit sibling routing, but the operation is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: an agent can infer this is the tool for a plain (unweighted) moving average, and the word "Simple" implicitly contrasts with the weighted-average sibling. There is no explicit when-to-use/when-not statement or named alternative.

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.