Skip to main content
Glama

lookup_hsn

Look up an HSN code (Harmonized System Nomenclature, used by Indian GST). Accepts 4-digit, 6-digit, or 8-digit codes (8-digit gets truncated to 6 then 4). Returns {code, description, gst_rate?}. Throws if no match.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesHSN code, e.g. '1006' (rice) or '300490' (other formulated medicaments).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses truncation (8-digit truncated to 6 then 4) and error behavior (throws if no match), which adds value beyond the schema.

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 concise sentences that front-load purpose and include all key behaviors. No redundant information.

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?

Given no output schema, the description lists return fields (code, description, gst_rate?) and covers error handling. For a single-parameter tool, this is thorough and includes edge cases (truncation, throwing).

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% (param already described in schema). The description provides an example ('code, e.g. '1006' (rice)') which adds meaning, but does not significantly expand on the schema's description. Baseline 3 with minor improvement.

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?

The description clearly states the tool looks up an HSN code and specifies the valid digit lengths (4,6,8). It does not explicitly differentiate from sibling tools (classify_product, search_hsn), but the name and context imply direct lookup by code.

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 explains acceptable input formats and truncation behavior but lacks explicit guidance on when to use this tool versus siblings (e.g., 'Use this to get details for a specific code, not to search or classify').

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.