Skip to main content
Glama

health_diagnostic_test

Read-only

Diagnostic test accuracy (PPV/NPV, likelihood ratios) — Screening and diagnostic test math: sensitivity + specificity (decimal or percent) -> likelihood ratios with strength labels, Youden J, number needed to diagnose, diagnostic odds ratio, and PPV/NPV across prevalences. Add prevalence= for PPV, NPV, false discovery rate and outcomes per 1,000 tested; pretest= for post-test probability after a positive or negative result. Or pass the 2x2 counts tp=, fp=, fn=, tn= for accuracy, F1, MCC and 95% confidence intervals (Wilson; log method for LRs). Statistical tool, not medical advice. Price: $0.002 USDC (Base, via x402).

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": {
      "sensitivity": "<sensitivity>",
      "specificity": "<specificity>"
    },
    "name": "health_diagnostic_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
sensitivityYes0.9
specificityYes0.95

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint=true, destructiveHint=false), so the description's added value is the pricing model ($0.002 USDC on Base via x402), the 'not medical advice' disclaimer, and the specific CI methods (Wilson; log method for LRs). Those are genuinely non-obvious traits an agent should know before calling. It stops short of describing output shape or failure modes, so not a 5.

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?

Front-loaded with the core computation and output list, with optional modes and commercial terms trailing in logical order. It is a single dense run-on paragraph and the comma-spliced option clauses are slightly hard to parse, but nearly every clause carries 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?

There is no output schema, and the description does compensate by enumerating returned statistics, which is appropriate. The gap is invocation correctness: it advertises six optional parameters absent from the input schema, so an agent cannot tell whether those modes are actually reachable, making the definition incomplete about the tool's real interface.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the schema's own descriptions are bare examples ('0.9', '0.95'), so the description's 'decimal or percent' note adds real meaning for the two required params. However, it repeatedly instructs passing prevalence=, pretest=, tp=, fp=, fn=, tn= — none of which exist in the declared schema — which can drive invalid invocations. Net neutral-to-marginal value over the structured data.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific domain and verb set: 'Screening and diagnostic test math: sensitivity + specificity -> likelihood ratios...' and enumerates the concrete outputs (LRs, Youden J, NND, DOR, PPV/NPV). This is clearly distinguishable from siblings like health_clinical_calc or util_t_test, which share the 'test'/'calc' vocabulary.

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?

It gives conditional usage for output modes ('Add prevalence= for PPV...', 'Or pass the 2x2 counts tp=, fp=, fn=, tn='), which implies how to drive different result sets. However, there is no guidance on when to pick this over health_clinical_calc or the other health_* tools, and no stated preconditions beyond the required sensitivity/specificity pair.

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