Skip to main content
Glama

attach label set

attach_label_set

Attach a frozen golden set to a judge criterion to run calibration on that set and include its kappa in the certificate, or detach to clear the binding.

Instructions

Attach a frozen golden set to a judge criterion so its calibration runs on that set and its certificate carries the set's kappa — or detach it. POST /v1/label_sets/{id}/attach (API-key scope: evals:write). Returns: 200 { criterion_id: string, label_set_id: string|null } — the criterion's new golden-set binding. Notes: 400 'Freeze the golden set first — an unfrozen set can change under the calibration.' when the set has no frozen_at. 404 'Golden set not found' for foreign/unknown set ids (when attaching). A criterion holds at most one golden set; attaching replaces the previous one.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe golden set id. Must be frozen to attach; ignored when detach=true.
detachNoWhen exactly true, clears the criterion's golden set (sets label_set_id to null) instead of attaching {id}.
criterion_idYesThe judge criterion to attach the set to. Non-empty string required (400 'criterion_id is required'); 404 'Criterion not found' if not in the workspace.
Install Server

TDQS

A4.5/5.0
Behavior5/5

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

The description discloses side effects well beyond the sparse annotations: attaching replaces prior bindings, detaching sets label_set_id to null, and unfrozen sets trigger a 400. It also provides the exact return shape and error messages for foreign ids. This adds rich behavioral context that the annotations (readOnly=false, openWorld=true) do not cover.

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 dense but efficiently structured: it front-loads the action and purpose, then gives the endpoint, return shape, error notes, and key constraint in a logical order. Every sentence conveys necessary information, and the 'attaching replaces the previous one' caveat is clearly stated.

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?

Despite having no output schema, the description specifies the exact response shape, error codes, prerequisite freeze condition, and side effects. It also includes the required API-key scope, making it self-contained for an agent to invoke 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 already provides 100% parameter coverage, including that id must be frozen and is ignored when detach=true, and that criterion_id is non-empty. The description reaffirms these constraints but does not add significant new parameter-level meaning. Therefore the baseline of 3 is appropriate.

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 and resource: 'Attach a frozen golden set to a judge criterion' and explains the downstream consequences for calibration and certificate kappa. It also covers the detach variant, making the dual purpose explicit. This clearly differentiates it from sibling tools like freeze_label_set, which operate on the set's freeze state rather than the criterion binding.

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 gives clear situational context: use this to bind a frozen set to a criterion for calibration, or to clear that binding via detach. It specifies the prerequisite that the set must be frozen, and warns that a criterion holds at most one set, so attaching replaces the previous one. It does not name alternative tools, but no direct alternative exists in the sibling list.

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