Skip to main content
Glama

classify_product

Classify a product name into the most likely HSN code via keyword scoring. Returns {best, alternatives[], query, matched_tokens[]}. Best-effort: always returns a result (best may be null if nothing matched).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesProduct / service name, e.g. 'cotton t-shirt' or 'pre-paid SIM card'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

No annotations provided, so the description carries full burden. It discloses the return structure ({best, alternatives[], query, matched_tokens[]}) and the fallback behavior (best may be null). It does not mention side effects or error conditions, but for a classification tool this is adequate.

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?

Two sentences, front-loaded with purpose and return structure, no redundant information. Every word serves a purpose.

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 simple one-parameter tool without output schema, the description covers purpose, return structure, and edge case behavior. Missing explicit comparison with sibling tools and error handling, but overall complete enough.

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% with a clear description of the 'name' parameter. The description adds context about classification into HSN codes, but does not provide additional value beyond what the schema already conveys.

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 clearly states the verb (classify), resource (product name into HSN code), and method (keyword scoring). It distinguishes from sibling tools (lookup_hsn and search_hsn) by focusing on classification of product names.

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

Usage Guidelines3/5

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

The description implies usage when a product name needs an HSN code, but it does not explicitly state when to use this tool over siblings or provide exclusions. The 'best-effort' note provides some behavioral guidance but not comparative.

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.