Skip to main content
Glama

state_from_gstin

Resolve the Indian state/UT name from a GSTIN's first 2 characters (the TIN state code). Accepts a full GSTIN or just the 2-char prefix. Returns {state_code, state_name}, e.g. ('27', 'Maharashtra').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gstinYesFull GSTIN or 2-char state-code prefix.

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description bears full responsibility. It outlines core behavior (accepts full GSTIN or prefix, returns state code and name) but omits error handling or edge cases (e.g., invalid prefix).

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 action, and includes an example output. Every sentence adds value without redundancy.

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 1-parameter lookup with no output schema, the description covers essential behavior (input, output format, example). It is mostly complete, though missing error or validation details.

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?

The single parameter 'gstin' has 100% schema coverage. The description reiterates the schema's text without adding new meaning, meriting the baseline score of 3.

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 tool resolves Indian state/UT name from GSTIN's first 2 characters, with specific input and output examples. It is distinct from siblings like extract_pan and validate_gstin.

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 does not explicitly state when to use this tool versus alternatives. It implies usage for state resolution but lacks exclusion criteria or context-based guidance.

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.

TDQS

A4.3/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: extracting PAN, resolving state, and full validation. No overlap or ambiguity.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern with snake_case (extract_pan, state_from_gstin, validate_gstin).

Tool Count4/5

Three tools is slightly below typical range but well-scoped for a focused validation server; each tool is essential and not redundant.

Completeness4/5

Covers the main validation needs (format, state, PAN, check digit). Minor gaps like a dedicated check-digit tool or batch processing exist but are non-essential.