Skip to main content
Glama

x402-ai-classify

AI Classify: Classify text into one of your labels (default: spam/urgent/technical/finance/general) via AI. Pass text plus optional labels array; returns the best single label.

Input Schema

NameRequiredDescriptionDefault
textNo
inputNo
labelsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / input / description
      Removed value: -"Input to process"
    • removedInput schema / properties / labels / description
      Removed value: -"Labels to process"
    • removedInput schema / properties / text / description
      Removed value: -"Text to process"
  2. Changed1 schema field changed
    • addedInput schema / properties / text
      Added value: +{
      +  "description": "Text to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It does disclose the return shape ('returns the best single label') and the default label set, which is genuinely useful, but says nothing about AI nondeterminism, latency, cost, or permissions.

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?

Two tight sentences, front-loaded with the purpose and followed by the input/output contract. No filler, though the label list could be moved to a note to keep the core action first.

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

Completeness2/5

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

For a 3-parameter tool with 0% schema coverage, no annotations, and no output schema, the description leaves too much open: one parameter is undocumented, the labels type contradicts the schema, and behavioral traits are unaddressed.

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

Parameters2/5

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

Schema coverage is 0% and the description only partially compensates. It documents 'text' and 'labels', but calls labels an 'array' while the schema declares it a string, and the third parameter 'input' is never mentioned at all.

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?

States a specific verb+resource: classify text into one of the caller's labels, with a documented default label set. This distinguishes it reasonably from generic siblings such as x402-sentiment or x402-zero-shot-classify, though it never explicitly names those alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Only implied guidance: the word 'optional' on the labels parameter hints that omitting it falls back to defaults, but there is no statement of when to use this tool versus the many other classification-adjacent siblings (x402-zero-shot-classify, x402-sentiment, x402-bias-detect). No prerequisites or exclusions are given.

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