Skip to main content
Glama

ai_classify_batch

Read-only

Batch text classifier — Classify up to 25 texts in one call (support tickets, leads, reviews, emails, intents). texts = items separated by | or newlines, or a JSON array (each up to 1,000 chars). labels = comma-separated allowed labels (optional; without it the model invents up to 8 reusable categories). Optional multi=true (1-3 labels each) and context= (what the texts are). Labels are snapped offline to your allowed set, off-list answers are dropped and counted, and you get per-item label, confidence and reason, a label distribution, and a CLEAN / MOSTLY_CLEAN / REVIEW verdict. Workers AI llama-3.3-70b. Price: $0.012 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "texts": "<texts>",
      "labels": "<labels>"
    },
    "name": "ai_classify_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
textsYese.g. My card was charged twice this month|How do I reset my password?|The new dashboard is great
labelsYese.g. billing,account,feedback

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only cover the safety profile (readOnly, openWorld, non-destructive); the description goes far beyond by disclosing the label-snapping behavior, that off-list answers are dropped and counted, the model (llama-3.3-70b), the verdict tiers, and the x402 price of $0.012 USDC. That is exactly the kind of operational context annotations cannot carry.

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

Conciseness4/5

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

Dense but front-loaded — capability, input format, label semantics, output shape, then price — with no filler sentences. It is near the upper limit of comfortable length for a two-parameter tool, and the pricing/verdict tail competes with the more decision-relevant input format details.

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?

With no output schema, the description correctly compensates by describing the return payload (per-item label, confidence, reason, distribution, CLEAN/MOSTLY_CLEAN/REVIEW verdict), so an agent knows what comes back. The gaps are the phantom multi/context parameters and the optional-vs-required labels mismatch, which leave the call signature slightly ambiguous.

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 coverage is 100%, so baseline is 3, and the description does add real meaning: pipe/newline/JSON-array separators and a 1,000-char per-item cap. However it also describes multi=true and context= parameters that do not exist in the schema, and calls labels optional while the schema marks it required, muddying rather than clarifying the contract.

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?

"Batch text classifier — Classify up to 25 texts in one call" states a specific verb, resource, and batch scope, with concrete input domains (support tickets, leads, reviews, emails, intents). It implicitly separates itself from single-item siblings via the 25-text cap, but never names an alternative, so it falls short of a 5.

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?

It gives clear usage context: use it for bulk labeling of short texts, labels are optional (letting the model invent up to 8 categories), and multi=true enables 1-3 labels per item. It never states when NOT to use it or which sibling to pick instead, which keeps it at 4 rather than 5.

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