Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as minia2a — hosted x402 API marketplace (HTTP). If you published it, claim ownership there.

x402-f1-score

F1 Score: Calculate the F1 score (harmonic mean of precision and recall) from actual and predicted labels. Provide yTrue and yPred arrays. 🆓 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-f1-score"
  }
}

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

B3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does add genuinely useful commercial context: '5 free trial calls per signed wallet' implies wallet signing/authentication and a rate limit. However, it says nothing about what the response contains, whether the score is 0-1 or 0-100, or what happens on 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.

Conciseness4/5

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

Two short sentences with the definition front-loaded and the pricing note trailing. The emoji and free-trial line are marketing rather than functional, but they cost little space.

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 four-parameter scoring tool with no output schema and no annotations, the definition leaves real gaps: return format, the meaning of the duplicate actual/predicted parameters, and input format expectations (arrays as strings?) are all unspecified. It covers the core identity and pricing model but not enough to call the tool confidently without inspecting the schema.

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, so the description must compensate, and it only does so partially: it names yTrue and yPred but never explains the additional 'actual' and 'predicted' properties. Worse, the prose says 'from actual and predicted labels' while the schema requires yTrue/yPred, leaving the relationship between the two pairs unresolved for an agent.

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?

States a specific verb and resource — 'Calculate the F1 score (harmonic mean of precision and recall) from actual and predicted labels' — which clearly separates it from siblings like x402-r2-score or x402-answer-score. It stops short of naming which sibling to use for related accuracy metrics, but the operation itself 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 Guidelines2/5

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

The only guidance is 'Provide yTrue and yPred arrays', which is a calling instruction rather than a when-to-use rule. There is no statement of when to prefer F1 over the sibling R2 or answer-scoring tools, no exclusions, and no prerequisite context beyond the pricing note.

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.

Resources