Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-confusion-matrix

Confusion Matrix: Builds a label-by-label confusion matrix from yTrue and yPred arrays and returns labels and total 🆓 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": {
      "yPred": "<yPred>",
      "yTrue": "<yTrue>"
    },
    "name": "x402-confusion-matrix"
  }
}

Input Schema

NameRequiredDescriptionDefault
yPredYes
yTrueYes
actualNo
predictedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "yPred",
      +  "yTrue"
      +]
  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.6/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 disclosure burden. It reveals only that labels and a total are returned and that calls cost a free-trial allowance; it says nothing about accepted input encoding (CSV string? JSON array?), label ordering in the output, or error behavior for mismatched array lengths.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core sentence is front-loaded and efficient, but the trailing '🆓 5 free trial calls per signed wallet' is promotional noise that also truncates the intended return-value sentence with a dangling 'and total'. The useful content is there but undercut by clutter.

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?

For a four-parameter tool with no annotations and no output schema, an agent needs to know the input string format, what the optional parameters do, and what shape the returned matrix takes. None of that is provided, so the definition is insufficient to call the tool confidently.

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%, with four string parameters and no documentation at all. The description mentions only yTrue and yPred, leaving the optional 'actual' and 'predicted' parameters completely unexplained and indistinguishable from the required pair, and it never states the expected string format.

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?

"Builds a label-by-label confusion matrix from yTrue and yPred arrays" gives a specific verb and resource, enough to distinguish it from the numeric matrix siblings like x402-matrix-multiply or x402-covariance-matrix. It stops short of explicitly naming a contrasting sibling, so a 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?

No when-to-use guidance, no prerequisites, and no mention of when a different classification-metric tool would be preferable. The only conditional content is a pricing note, which does not help tool 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.