Skip to main content
Glama

get criterion alignment

get_criterion_alignment
Read-onlyIdempotent

Fetch the persistent alignment report from a criterion's last calibration run, including metrics, threshold sweep, and judge-human disagreements, to review calibration quality without re-judging.

Instructions

Read the persistent report from the criterion's last calibration run: metrics with intervals, population breakdown, threshold sweep, and every judge/human disagreement with the human's critique and a response excerpt. Free; it never re-judges. GET /v1/criteria/{id}/alignment (API-key scope: read). Returns: { aligned_at, scope_tag, tag_breakdown: [{ tag, n }], mixed_population, tier, thin_alignment_set, metrics: { n, tpr, tpr_ci, tnr, tnr_ci, kappa }, threshold_analysis: { half ("tune"|"all"), sweep: { n, ungraded, argmax: metrics, best: { threshold, metrics, youden_j }|null, curve: [{ threshold, metrics, youden_j }], note }, report_check: { threshold, n, metrics, youden_j, argmax }|null }|null, agreements (count), disagreements: [{ request_id, judge_verdict, human_verdict, critique, tag, response_excerpt }] } Notes: 404 "Criterion not found". 400 "This criterion has no alignment run yet" when never calibrated or after a voiding edit; 400 "Alignment run in progress — N labels judged so far" while a background run is in flight (use it to poll). threshold_analysis is null for runs recorded before logprob grades were stored. All nested keys are snake_case.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesCriterion id.
Install Server

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial context: it is free, never re-judges, returns a persistent report, supports polling via a specific 400 error, and explains when threshold_analysis is null. There is no contradiction with annotations.

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

Conciseness5/5

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

The description is detailed but well-structured, front-loading purpose and scope before the return shape and error notes. Every sentence adds relevant information, especially since there is no output schema to document the response.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderately complex return object, lack of an output schema, and single simple parameter, the description is complete: it documents the full return structure, error cases, polling behavior, historical null caveat, and key naming convention. An agent has enough to call it correctly.

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?

The input schema has one parameter, id, described as 'Criterion id,' and schema description coverage is 100%. The description adds the endpoint pattern using {id}, but does not need to elaborate further because the parameter is simple and already documented.

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 opens with a specific verb ('Read') and a precise resource: the persistent report from the criterion's last calibration run. It enumerates the report contents and explicitly distinguishes itself by saying it never re-judges, making it easy to separate from run_criterion_alignment.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

The description clearly communicates when to use this tool: to read an existing alignment report, poll an in-progress run, or check why no report exists. It says it is free and never re-judges, which implies a safe alternative to running alignment, but it does not explicitly name run_criterion_alignment as the counterpart tool.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/omnia-v/errorbar-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server