Skip to main content
Glama

AgentStall: Africa and global data for agents

India GSTIN validator: check a GST number and decode state and PAN

india_gstin_validate
Read-onlyIdempotent

GSTIN (India GST number) validation: checks the 15-character format and the check character, and decodes the state, the embedded PAN and the type of PAN holder (company, individual, firm, trust and others). Format check only, not a GST portal registration lookup; the number is not stored. Useful for invoices, vendor onboarding and KYB forms for Indian businesses, and for catching typos. Returns JSON with pan, state, valid, stateCode, normalized, panHolderType. Read-only; invalid input is rejected before any charge. Price: $0.002 USDC per call (x402, Base mainnet), paid only when the call succeeds.

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": {
      "gstin": "<gstin>"
    },
    "name": "india_gstin_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
gstinYes15-character GSTIN, e.g. 27AAPFU0939F1ZV

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?

Annotations already declare read-only, non-open-world and idempotent, but the description adds materially more: the number is not stored, invalid input is rejected before any charge, billing is $0.002 USDC per call via x402 on Base mainnet and only applies to successful calls. The return field list (pan, state, valid, stateCode, normalized, panHolderType) is also disclosed despite there being no output schema.

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?

Front-loaded with the core validation semantics before scope caveats, then pricing. Every clause carries information, though the single long sentence chain is dense and the pricing tail slightly crowds the validation details.

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?

For a one-parameter read-only validator with no output schema, the description covers what is validated, what is not (portal registration lookup), what is returned, persistence behavior, failure/billing handling, and cost — nothing an agent needs to call it correctly is missing.

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?

With a single parameter at 100% schema coverage, the baseline is 3, but the description earns more by explaining what the input encodes — a 15-character GSTIN whose state code, PAN and holder-type segments are decoded — which tells the agent the input is structurally meaningful rather than an opaque string.

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?

States a specific verb and resource ('GSTIN (India GST number) validation') and spells out exactly what is checked (15-character format, check character) and what is decoded (state, embedded PAN, PAN holder type). This is clearly distinguishable from the sibling validators, which target South African identifiers rather than Indian GST numbers.

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?

Names concrete use contexts (invoices, vendor onboarding, KYB forms for Indian businesses, catching typos) and draws an explicit boundary: 'Format check only, not a GST portal registration lookup.' That when-not clause is the key routing signal; no sibling alternative is named, but the scoping exclusion covers the main misuse risk.

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