Skip to main content
Glama

ai_intent

Read-only

Intent + slot detection with routing — Classify a chatbot or support message into an intent and extract slots. Optional intents= (comma list) restricts the label: the model's answer is snapped offline to your list (or other). Optional slots= (comma list) names the slots you need; missing ones are reported. Slot values are checked offline against the message (ungroundedSlots = values not in the text). Confidence is normalized to 0-1. Returns a route: AUTO (confident, grounded, complete), CONFIRM, CLARIFY (a requested slot is missing, with a clarifying question) or HUMAN (low confidence or other), plus alternatives and language. Workers AI (Llama 3.3 70B). Price: $0.006 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": {
      "text": "<text>"
    },
    "name": "ai_intent"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYese.g. I want to change my flight to Friday morning

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, the description discloses the routing decision set (AUTO/CONFIRM/CLARIFY/HUMAN), the offline grounding check (ungroundedSlots), confidence normalization to 0-1, the underlying model (Llama 3.3 70B), and the price/x402 payment path. That is unusually rich behavioral context for a read-only inference call.

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?

The core purpose and route outputs are front-loaded, and each clause carries information about inputs, validation, or outputs. It is a dense single block, though, and the pricing/model details at the tail could be separated for faster scanning.

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?

With no output schema, the description takes on the return-value burden and does so: it lists the route values and what each means, plus alternatives, language, and confidence. Combined with input semantics and cost, an agent has everything needed to call and interpret it.

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?

The description explains semantics the schema cannot: intents= snaps the label to a fixed list or 'other', slots= names required slots, and missing slots are reported. However, intents= and slots= are described as optional parameters yet do not appear in the supplied input schema (only text does), which could confuse an agent about whether to pass them.

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+resource: 'Classify a chatbot or support message into an intent and extract slots.' The addition of slot extraction, offline snapping, and route output clearly separates it from generic siblings like classify or ai_classify without needing to name them.

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 states the intended context ('a chatbot or support message') and explains how the optional intents= and slots= parameters change behavior, which implies when to use each mode. It stops short of explicit when-not-to-use guidance or naming an alternative sibling for simpler classification.

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