Code List Lookup
code_list_lookupLook up or search UK customs procedure and additional procedure codes in published HMRC code lists to read what a code means, its heading, status and list edition.
Instructions
Look up a code in a published code list. list (required) is one of: cds-procedure-codes-imports and cds-procedure-codes-exports (HMRC CDS requested and previous procedure codes, DE 1/10, e.g. 4000, 1040); cds-additional-procedure-codes-imports and cds-additional-procedure-codes-exports (HMRC CDS additional procedure codes, DE 1/11, e.g. C07, 1RV). With code it returns the code's name as published, the heading it is listed under, its status and the list's edition; with q it searches that one list (exact code, code prefix, then name); with neither, the list itself, paged. Use it to read what a UK customs procedure or additional procedure code means; for a commodity code use hs_code_lookup, for UK duty uk_duty_calculator. Codes and names as HMRC publishes them on GOV.UK (Open Government Licence v3.0, attribution in every answer). No completion rules and no declaration check; reference, not advice. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "code_list_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Search within the list: exact code first, then codes starting with q, then names containing it. | |
| code | No | One code, as published (e.g. 4000, C07). Leave out to search or to list. | |
| full | No | Full rows (heading and edition on each) instead of summary rows, five per page by default. | |
| list | No | The code list, e.g. cds-procedure-codes-imports (the lists are named in the description). Required: a lookup or a search runs within one list. | |
| limit | No | Page size: summary rows 1-200 (default 50), full rows 1-25 (default 5). | |
| offset | No | Page start for a list or a search (default 0). | |
| include_deprecated | No | Also list and search codes the publisher marks as no longer to be used (a direct lookup always returns them, with the status). No list served today marks one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| _meta | No | ||
| as_of | No | ||
| result | Yes | ||
| status | No | ||
| _source | Yes | ||
| edition | No | ||
| citation | Yes | ||
| validity | No | ||
| warnings | No | ||
| confidence | Yes | ||
| missing_inputs | No | ||
| blocking_errors | No | ||
| envelope_version | Yes | ||
| normalized_input | No |