Skip to main content
Glama

reliability_diagram

Visualize classifier confidence versus observed accuracy by rendering reliability diagrams from one or more prediction files, with configurable binning to audit calibration.

Instructions

Render a reliability diagram (confidence vs accuracy) for one or more predictions files.

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": {
      "paths": "<paths>"
    },
    "name": "reliability_diagram"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathsYes
n_binsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/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 of behavioral disclosure, and it does not say whether the tool displays, returns, or saves an image, nor whether it depends on plotting libraries or writes files. Only the read-only nature is weakly implied by 'Render'. This is thin for a tool with zero annotation coverage.

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 with no filler or redundancy. Its brevity is efficient rather than padded, though the terseness borders on under-specification.

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 0% parameter coverage, the description would need to explain the return form (plot object vs. file), the input file format, and the binning parameter. It omits all three, leaving real gaps for correct invocation.

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%, so the description must compensate and it largely does not. 'One or more predictions files' gives some meaning to the required paths array, but the n_bins parameter (default 15) is never mentioned, and the expected format of a 'predictions file' is left unexplained.

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 ('Render') and resource ('reliability diagram') and clarifies with the parenthetical 'confidence vs accuracy', which tells an agent exactly what the plot shows. It does not explicitly differentiate itself from the sibling evaluate_calibration, which likely reports the same calibration information numerically, so it falls short of 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?

There is no when-to-use guidance, no mention of prerequisites, and no comparison to siblings such as evaluate_calibration or compare_models. The phrase 'one or more predictions files' only hints at batch use; an agent must infer that this is the visualization counterpart to numeric calibration evaluation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.