Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-moving-sum

Moving Sum: Rolling sum over a numeric array with a fixed window (default 3). Inputs: values (array), window. 🆓 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-sum"
  }
}

Input Schema

NameRequiredDescriptionDefault
valuesYes
windowNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "values",
      -  "window"
      -]New value: +[
      +  "values"
      +]
  2. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "values",
      +  "window"
      +]
  3. Changed2 schema fields changed
    • removedInput schema / properties / values / description
      Removed value: -"Values to process"
    • removedInput schema / properties / window / description
      Removed value: -"Window to process"
  4. First observed

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose the computation model, the fixed window, and the default of 3, plus a quota/pricing note (5 free trial calls per signed wallet) that is genuine behavioral context. However, it says nothing about output length, what happens when window exceeds array length, or whether the operation is read-only/pure.

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?

Compact and front-loaded: definition first, then inputs, then quota. Every sentence is short and relevant; the emoji-prefixed quota line is the only slightly promotional element but still conveys usable information.

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?

For a simple two-parameter computational tool with no output schema, the description covers purpose, the window default, and rate-limit context, which is close to sufficient. The missing input encoding format and the absence of any note on output shape or edge-case behavior keep it at a minimum-viable 3.

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 coverage is 0% and the schema types both parameters as strings, while the description calls values an "array" without explaining how to encode it in a string field (JSON? comma-separated?). Listing the two parameter names adds almost nothing beyond the schema's own property names and leaves the type discrepancy unresolved.

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?

"Rolling sum over a numeric array with a fixed window (default 3)" is a specific verb-plus-resource statement that clearly distinguishes this from total-sum or cumulative-sum style siblings. It stops short of naming a sibling as the alternative, so it lands at a clear 4 rather than a 5.

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?

The description says what the tool computes but never says when to choose it over x402-cumulative-sum, x402-moving-average, or x402-aliquot-sum. The only usage-adjacent information is the default window value and the free-trial quota, neither of which is selection guidance.

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.