Skip to main content
Glama

India Public APIs MCP

digipin_decode

Read-onlyIdempotent

Decode a DIGIPIN back to the centre latitude/longitude of its ~4m grid cell.

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": {
      "digipin": "<digipin>"
    },
    "name": "digipin_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
digipinYes

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?

Annotations already declare readOnly, idempotent, non-destructive, closed-world behaviour, so the safety bar is covered. The description adds meaningful context beyond that: the return is the cell centre, not an exact point, and the cell is roughly 4m, which tells the agent about precision limits.

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?

One sentence, front-loaded with the verb and resource, with the return value and precision qualifier packed in. Nothing is redundant or padded.

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 read tool with no output schema, the description covers what the tool does, what it returns, and its precision. Minor gaps remain: input validation expectations and the shape/units of the returned coordinate pair.

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 description coverage is 0% for the single parameter, so the description must carry the load. It implies the parameter is a DIGIPIN code but does not state the expected format, length, character set, or case sensitivity, leaving real ambiguity about valid input.

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 (decode) and resource (DIGIPIN), plus the exact output (centre latitude/longitude) and precision (~4m grid cell). The verb 'decode' directly contrasts with the sibling digipin_encode, so an agent can pick between them without opening either schema.

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?

There is no explicit when-to-use or when-not-to-use statement and no prerequisites (e.g., input must be a valid DIGIPIN). Usage is only implied by the narrow, self-evident purpose of reversing an encoding.

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.