Skip to main content
Glama

classify

Batch-classify up to 100 items against a shared set of categories to route support tickets, label log lines, or triage inbox items.

Instructions

Batch-classify up to 100 items against ONE shared set of categories using Jev.

Runs the official choice question type once per item and aggregates the results — routing support tickets, labeling log lines, triaging inbox items against your own label set. Much cheaper and faster than an LLM for mechanical labeling.

Args: items: 1-100 non-empty strings to classify. options: Mapping of short unique id -> one-line category description. 2-100 options. question: Per-item question; the item itself is appended automatically. context: Optional background facts shared by all items.

Returns: JSON string: {results: [{item, choice, confidence, probabilities}], summary (counts per choice, sorted desc), model, total_latency_ms, usage: {input_tokens, output_tokens, calls, cached_calls}}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes
contextNo
optionsYes
questionNoWhich category does this item belong to?

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explains that the tool runs 'choice' once per item, automatically appends the item to the question, aggregates results, and returns a detailed JSON structure including confidence, probabilities, summary counts, latency, and usage. It does not discuss error behavior or potential costs, but it gives a strong operational picture.

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 well-structured with a concise summary sentence, use cases, an Args section, and a Returns section. Every part earns its place: the summary explains what the tool does, Args documents each parameter, and Returns tells the agent exactly what to expect. There is no redundant filler.

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

Completeness4/5

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

The tool is moderately complex with four parameters and a structured return value. The description covers parameters, constraints, execution behavior, and the complete return shape. It could be slightly more complete by explaining what 'Jev' is or clarifying error modes, but nothing essential is missing for an agent to invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 fully. It does: items are '1-100 non-empty strings,' options are a 'Mapping of short unique id -> one-line category description' with '2-100 options,' question has a default and is auto-appended with the item, and context is optional. This adds meaningful constraints and semantics beyond the plain JSON schema.

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 immediately states the core action: 'Batch-classify up to 100 items against ONE shared set of categories using Jev.' It also explains that it wraps the 'choice' question type and aggregates results, which differentiates it from the single-item sibling tool 'choice'. Concrete examples like routing support tickets and labeling log lines further clarify the intended resource and function.

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 provides clear context for when to use the tool, such as 'routing support tickets, labeling log lines, triaging inbox items' and says it is 'Much cheaper and faster than an LLM for mechanical labeling.' It does not explicitly state when not to use it or contrast it directly with sibling alternatives, but the batch-vs-single distinction is implied through the 'choice question type once per item' phrasing.

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

Deploy Server

Other Tools