Skip to main content
Glama

classifier.dev

Count how many texts fall under each label

count_labels
Read-onlyIdempotent

Classify up to 1,000 texts and return only a histogram: how many landed on each label, and how many the model was unsure about. Use this when you want the shape of a corpus — what share of feedback is bugs vs praise, how many search results are relevant — without pulling a thousand individual answers into context. Use classify_texts when you need the answer per item.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputsYes1 to 1,000 texts to classify. Results come back in the same order.
labelsYes2 to 100 category names. Descriptive names classify better: "urgent bug" beats "p0". Add a label like "none of these" when none-of-the-above is a real outcome.
instructionsNoOptional extra criteria, e.g. "judge only the service, ignore the food".
unsure_belowNoAnswers with confidence under this count as unsure.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
totalYes
countsYesLabel -> how many texts, every label present.
unsureYesHow many answers fell under unsure_below.
unsure_belowNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, and non-destructive behavior. The description adds important behavioral traits: it returns only a histogram, not individual classifications, and it counts uncertain items via the confidence threshold. This complements rather than repeats the 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 compact and front-loaded, stating the core behavior in the first sentence and then giving concrete examples. Every sentence earns its place by defining purpose, usage, or a sibling distinction.

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 rich annotations, full parameter schema coverage, and available output schema, the description supplies everything an agent needs to select and call the tool correctly: scope, scale, result shape, and sibling distinction.

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 description coverage is 100%, so the parameters are already well documented and the baseline is 3. The description adds no new parameter-level meaning; it only alludes to the output-level concept of uncertainty.

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: classify up to 1,000 texts and return a histogram of label counts. It also distinguishes itself from classify_texts by emphasizing aggregate counts rather than per-item answers.

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

Usage Guidelines5/5

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

It explicitly states when to use this tool ('when you want the shape of a corpus') and when not to ('Use classify_texts when you need the answer per item'). This gives the agent a clear routing rule versus the closest sibling.

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