hsm_analyze_code
Scan legacy payment code for HSM socket calls, detect Futurex, Thales, and Atalla commands, and receive APC migration paths and notes for LMK, DUKPT, and fixed-key patterns.
Instructions
Call this whenever reviewing legacy payment code that may contain HSM socket calls — Python, Java, C, Go, or any language. Even a single file or function is worth scanning. Works without AWS credentials.
Detects Futurex Excrypt commands ([AOCCCC;...] frames), Thales/International 2-char command codes, and Atalla/Futurex Standard numeric codes. Returns identified commands, their APC migration path, and migration notes for LMK, DUKPT, and fixed-key patterns.
Args: source_code: Raw source code containing HSM socket calls or command strings.
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": {
"source_code": "<source_code>"
},
"name": "hsm_analyze_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_code | Yes |