Skip to main content
Glama

classify_turn

Classify user-request complexity on a 0-2 scale to select the cheapest model tier capable of handling it, returning a tier, reason, and fallback for reliable routing.

Instructions

Classify how complex a user request is on a 0/1/2 scale. Use this when you're orchestrating an agent and want to decide whether to spend on a flagship model (tier 2), a mid-tier model (tier 1), or stay cheap (tier 0). Returns {tier, why, fallback, durationMs}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userMessageYesThe user's request to classify. Capped at 1500 chars internally.
recentHistoryNoOptional. Last 1-2 assistant turns for context. Each capped at 200 chars internally.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the return shape ({tier, why, fallback, durationMs}) and explains the tier meanings, which adds value. However, it does not disclose potential side effects, fallback semantics, or internal behavior such as truncation limits beyond what the schema already contains.

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 two sentences, front-loaded with the core action and scale, then followed by the use case and return shape. Every sentence earns its place with no wasted words.

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

Completeness3/5

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

The schema is simple and the description covers purpose, use case, and return fields, but it does not explain the meanings of 'fallback' and 'durationMs', nor does it contrast with the sibling 'recommend_model'. This leaves gaps an agent might need to resolve before confidently choosing this tool.

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 baseline is 3. The description does not add parameter-specific detail beyond the schema; it only explains the tier scale, not how userMessage or recentHistory should be formatted beyond what the schema already states.

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?

Description states a specific verb ('Classify'), a resource ('user request'), and the 0/1/2 scale, making the tool's purpose immediately clear. It also ties the scale to model-tier decisions, but it does not explicitly differentiate from the sibling tool 'recommend_model'.

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 explicitly says when to use it ('when you're orchestrating an agent and want to decide whether to spend...'), giving clear context for deployment. However, it does not state when not to use it or mention the alternative tool, so it lacks exclusions.

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