Skip to main content
Glama

classify

Assign a single category to a state from provided labels or criteria, returning the chosen label with calibrated confidence and probability over all categories.

Instructions

Assign the single best category to a state (one choice question).

Provide either labels (a list of category names) or criteria (a map of category -> short description; more accurate). Returns the chosen label, calibrated confidence, and the probability over all labels.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNo
stateYes
labelsNo
criteriaNo
instructionsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does it well: it discloses that exactly one category is assigned, that confidence is calibrated, and that the full probability distribution over labels is returned. It omits edge-case behavior when neither labels nor criteria are supplied, but core behavior is transparent.

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?

Two tight blocks with no filler: the primary action leads, parameter guidance follows, and the return contract closes the description. Every sentence adds information.

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?

For a 5-parameter tool with no annotations and 0% schema coverage, too much is left unresolved: whether labels or criteria are mandatory despite the schema only requiring state, how instructions affect behavior, what model defaults to, and what happens if neither labels nor criteria is provided. The output schema covers return shape, but calling semantics remain incomplete.

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. It gives meaning to labels and criteria, and implies state is the thing being classified, but it never explains the model or instructions parameters, and does not define what kinds of values state may take.

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?

The description states a specific verb and resource: 'Assign the single best category to a state' and narrows the task to 'one choice question'. It makes the classification purpose clear, though it does not explicitly contrast this tool with siblings like decide or score.

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 actionable guidance on parameter selection: 'Provide either labels ... or criteria', and even notes that criteria is 'more accurate'. However, it does not say when to prefer classify over sibling tools, and it provides no exclusions or alternative tool routing.

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