Skip to main content
Glama

verify_pin_data

Verify a cardholder PIN against a stored IBM 3624 offset or Visa PVV at an issuer host, supporting multiple PIN block formats and encryption key types.

Instructions

Call this when implementing PIN verification at an issuer host — checking a cardholder-entered PIN against a stored IBM 3624 offset or Visa PVV. Also use to validate PIN verification logic end-to-end before deploying to production.

Verify a cardholder PIN against a stored PIN verification value.

Supported key types: verification_key_identifier: V1 (IBM3624) or V2 (Visa) PVK encryption_key_identifier: P0 PIN Encryption Key or B0 BDK (DUKPT)

primary_account_number is optional for ISO_FORMAT_1 (which does not include PAN).

dukpt_attributes (when encryption_key_identifier is a BDK): {"KeySerialNumber": "", "DukptKeyDerivationType": "AES_128"}

Args: verification_key_identifier: ARN or alias of PVK encrypted_pin_block: Hex-encoded encrypted PIN block encryption_key_identifier: ARN or alias of PEK or BDK (or KEK for wrapped key) verification_attributes: Scheme-specific verification params (mirrors generate_pin_data) pin_block_format: ISO_FORMAT_0, ISO_FORMAT_1, ISO_FORMAT_3, or ISO_FORMAT_4 primary_account_number: 12-19 digit PAN (required for all formats except ISO_FORMAT_1) pin_data_length: Optional PIN length override dukpt_attributes: Required when encryption_key_identifier is a BDK encryption_wrapped_key: Optional TR-31 wrapped PEK (encryption_key_identifier becomes the KEK)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pin_data_lengthNo
dukpt_attributesNo
pin_block_formatYes
encrypted_pin_blockYes
encryption_wrapped_keyNo
primary_account_numberNo
verification_attributesYes
encryption_key_identifierYes
verification_key_identifierYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.2.0

TDQS

A4.3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It adds useful behavioral detail: supported key types (V1/V2, P0/B0), DUKPT KSN requirements, and the ISO_FORMAT_1 PAN exception. However, it does not state whether the operation is non-mutating or describe auth/error/rate-limit behavior, leaving some ambiguity.

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 well structured with a front-loaded usage statement, supported key types, and a clean Args list. Although detailed, the detail is necessary given 9 parameters and no schema descriptions; there is little 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?

Given the high complexity (9 params, nested objects, conditional logic) and absence of annotations/output schema, the description covers the invocation contract thoroughly. It still omits response/return details and potential error conditions, but these are not critical for selecting and invoking the tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description documents every parameter with formats, examples, and conditional requirements (e.g., dukpt_attributes required with BDK, encryption_wrapped_key changes key meaning, PAN optional only for ISO_FORMAT_1). This fully compensates for the schema gap.

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 opens with a concrete use case ('implementing PIN verification at an issuer host') and clearly states the operation: validating a cardholder-entered PIN against a stored IBM 3624 offset or Visa PVV. This differentiates it from sibling generation/verification tools by naming the specific PIN verification schemes and formats.

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?

It explicitly says when to call it: during issuer-host PIN verification and for end-to-end validation before production. It does not explicitly call out alternatives or when not to use it, but the context is clear enough for an agent to route to this tool.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/J8k3/aws-payment-cryptography-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server