Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-r2-score

R2 Score: Compute R² (coefficient of determination). 🆓 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>",
      "predicted": "<predicted>"
    },
    "name": "x402-r2-score"
  }
}

Input Schema

NameRequiredDescriptionDefault
yPredNo
yTrueNo
actualYes
predictedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "actual",
      +  "predicted"
      +]
  2. Changed4 schema fields changed
    • removedInput schema / properties / actual / description
      Removed value: -"Actual to process"
    • removedInput schema / properties / predicted / description
      Removed value: -"Predicted to process"
    • removedInput schema / properties / yPred / description
      Removed value: -"YPred to process"
    • removedInput schema / properties / yTrue / description
      Removed value: -"YTrue to process"
  3. First observed

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and mostly does not: it never says what is returned (a single scalar? a 0–1 range? negative values for bad fits?), nor whether inputs are comma-separated strings, arrays, or JSON. The one genuine disclosure is the '5 free trial calls per signed wallet' limit, which does hint at an auth/paywall requirement.

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?

Two compact sentences, metric definition front-loaded ahead of the pricing note, with no wasted prose. The emoji and free-tier ad are marginal but do convey quota information, so the brevity is largely earned.

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?

There is no output schema and no annotations, so the description should explain the return value and input encoding, and it does neither. For a mathematically simple scorer that gap is moderate rather than fatal, since R² and the intent of 'actual'/'predicted' are conventional, but the duplicate yTrue/yPred parameters remain unexplained.

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 description coverage is 0% across four parameters, and the description supplies no parameter meaning at all. It does not explain the relationship or precedence between the required 'actual'/'predicted' pair and the additional 'yTrue'/'yPred' pair, leaving a genuine ambiguity the agent must guess at.

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 the exact operation and metric: 'Compute R² (coefficient of determination)', a specific verb plus a well-defined statistic. The metric name itself distinguishes it from the sibling scoring tools (f1-score, cvss-score, readability-score, etc.), so an agent can route to it, though the description never states that distinction explicitly.

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?

There is no when-to-use guidance and no mention of alternatives or prerequisites such as requiring two equal-length numeric sequences. The only conditional information is the free-call allowance, which is about billing rather than about when to select this tool over a sibling scorer.

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.