Skip to main content
Glama
rehan1020

mcp-india-stack

by rehan1020

decode_pan_type

Read-onlyIdempotent

Decode the 4th character of a 10-character PAN to determine the entity type, such as individual, company, or firm.

Instructions

Decode PAN entity type from 4th character.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
panYes10-character PAN

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.5.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / pan / title
      Added value: +"Pan"
    • addedInput schema / title
      Added value: +"decode_pan_typeArguments"
    • addedOutput schema / title
      Added value: +"decode_pan_typeDictOutput"
  2. First observedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

Read-only and idempotent behavior is already covered by annotations, and the description adds the specific decoding rule (uses the 4th character). This gives useful context beyond the schema without restating the annotation flags.

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 entire description is one front-loaded sentence with zero filler. Every word contributes meaning: what is decoded, from what, and where in the input.

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 single-parameter, read-only decode operation with full schema coverage and an output schema, the description is nearly complete. Minor gaps such as edge-case handling of invalid PANs or the exact entity-type mapping are not essential for correct invocation.

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 is fully documented in the schema as a '10-character PAN', so the description does not need to add much. It correctly implies that the 'pan' value is the input, but it adds no extra parameter-level detail beyond the schema.

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 states a specific verb ('Decode'), a specific resource ('PAN entity type'), and an exact source ('4th character'). This clearly distinguishes it from validation siblings like validate_pan and bulk_validate_pan without needing to inspect schemas.

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?

The description makes the use case clear: use this tool when you need to interpret the entity type encoded in the 4th character of a PAN. It does not explicitly name alternatives or exclusions, but the decoded-vs-validated distinction is strongly implied by the phrasing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools