Skip to main content
Glama

classify

Sort items into your allowed labels for bulk triage of logs, tickets, or search results; invented labels are discarded and returned as unknown.

Instructions

Sort items into labels you provide. Useful for triaging logs, tickets, or search results in bulk.

Labels are enforced: anything the model invents is discarded and the item comes back as "unknown" rather than silently mislabelled.

Args: items: The things to classify. labels: The allowed labels (at least two). multi: Allow more than one label per item.

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": {
      "items": "<items>",
      "labels": "<labels>"
    },
    "name": "classify"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes
multiNo
labelsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.3

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose a genuinely important behavior: labels are enforced, invented labels are discarded, and the item returns as "unknown" rather than being silently mislabelled. That constrains model behavior in a way structured data does not. It omits the per-item output shape and any error or rate-limit behavior, keeping it below a 5.

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?

Front-loaded with purpose and the primary use cases, then the enforcement caveat, then a compact Args block. Every sentence supplies information the agent would otherwise have to guess, and nothing is padded.

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?

For a three-parameter tool with no annotations and no output schema, the definition covers purpose, use cases, label constraints, and the "unknown" fallback. The main remaining gap is the structure of the returned classifications, which the description never characterizes.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate, and the Args block documents all three parameters plus a constraint absent from the schema (labels require at least two). The 'items' gloss ('the things to classify') is thin and restates the name, and the accepted label format is unspecified.

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?

"Sort items into labels you provide" gives a specific verb (sort/classify) and the key resource relationship (items + user-supplied labels), which is more precise than the bare name 'classify'. It does not explicitly differentiate itself from near-name siblings, but the stated purpose is unambiguous.

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 names concrete scenarios — triaging logs, tickets, or bulk search results — which tells an agent when this is the right tool. It stops short of exclusions or naming an alternative for single-item or open-ended classification, so it falls just short of a 5.

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