Decode a barcode
decodeRead a package barcode or tracking number (IMpb), or a letter's or flat's Intelligent Mail barcode (IMb) from its digits or bars: its layout, each field's digits and meaning, whether the check digit or the bars' frame check holds, and the service type code's or Service Type ID's row in the USPS list, each with the passage that says so. A field's meaning is postalref's words: quote a cite's lit, USPS's, with its passage.
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": {
"barcode": "<barcode>"
},
"name": "decode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| barcode | Yes | The digits under a package barcode, or all 30 or 34 with 420 and the ZIP Code. Or a letter's or flat's Intelligent Mail barcode: its 20, 25, 29 or 31 digits, or its 65 bars as A, D, F and T from the left. Spaces and dashes are fine. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | ||
| checks | Yes | ||
| digits | Yes | ||
| fields | Yes | ||
| format | Yes | ||
| verdict | Yes | ||
| tracking | Yes |