Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-r-squared

R Squared: Computes R-squared comparing actual and predicted arrays via residual and total sums of squares; the arrays must be the same length, and a constant actual array yields null 🆓 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": {
      "actual": "<actual>"
    },
    "name": "x402-r-squared"
  }
}

Input Schema

NameRequiredDescriptionDefault
aNo
pNo
actualYes
predictedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "actual"
      +]
  2. Changed4 schema fields changed
    • removedInput schema / properties / a / description
      Removed value: -"A to process"
    • removedInput schema / properties / actual / description
      Removed value: -"Actual to process"
    • removedInput schema / properties / p / description
      Removed value: -"P to process"
    • removedInput schema / properties / predicted / description
      Removed value: -"Predicted to process"
  3. First observed

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does usefully disclose two edge behaviors — arrays must be the same length and a constant actual array returns null — plus a commercial detail (5 free trial calls per signed wallet). It omits what happens on a length mismatch (error vs. exception), what the response looks like, and any auth expectation beyond "signed wallet".

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?

A single front-loaded sentence gives the purpose first, then the constraints, with no padding. The semicolon chain and appended trial/pricing fragment make it slightly run-on, but nothing is wasted.

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?

With no annotations, no output schema, and four undocumented parameters, the description is thin for a tool whose calling contract hinges on parameter naming. It covers the math and two edge cases but leaves input mapping and failure behavior unresolved.

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 description only explains the conceptual 'actual' and 'predicted' arrays. Two of the four parameters ('a', 'p') are never mentioned in either the schema or the description, leaving their role (likely short aliases) ambiguous. The description does not compensate for the coverage gap.

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 states a specific verb and resource ("Computes R-squared comparing actual and predicted arrays") and even the computational method (residual and total sums of squares), so the agent can tell what it produces. It does not explicitly contrast with close siblings such as x402-adjusted-r-squared or x402-mean-squared-error, which share the same input shape.

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 by the purpose statement and the stated constraints (equal-length arrays, null on constant input). There is no explicit when-to-use/when-not wording and no routing to the adjusted-R² or error-metric siblings, so the agent must infer selection.

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.