Parcel booking Sandbox
Menu
Powered byParcel2Go
Sandbox: test orders only. Nothing is shipped and payments are fake. Go to the live service.

Look up a country

Find a country's code and postcode rules by name or code. Up to 5 matches. Only needed when unsure of a code.

Read-only

MCP tool
lookup_country
REST
GET /v1/countries
Behaviour
read-only · idempotent · live upstream call

Request

Look up a country: request fields
FieldTypeNotes
query requiredstringCountry name or ISO code, e.g. 'germany', 'DE', 'DEU'
fromstringSender's country: decides which destinations are open (sendTo) Default: "GB".

Examples

curl "https://sandbox.parcel-mcp.com/v1/countries?query=germany"

As an MCP tool call over POST /mcp:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "lookup_country",
    "arguments": {
      "query": "germany"
    }
  }
}

Response

Look up a country: response fields
FieldTypeNotes
countries requiredobject[]
countries[].code requiredstringCode to use in other tools, e.g. GB, DE, GB-NIR
countries[].iso3 requiredstring
countries[].name requiredstring
countries[].sendFrom requiredbooleanParcels can be sent from here
countries[].sendTo requiredbooleanParcels can be sent here
countries[].postcode required"required" | "recommended" | "optional"recommended: quotes work without one, but the postcode sets the price and territory
countries[].postcodePatternstringRegex the postcode must match
countries[].partOfstringThe country this territory belongs to, e.g. GB for GB-NIR
countries[].regionsobject[]Territories with their own code, chosen automatically from the postcode
countries[].regions[].code requiredstring
countries[].regions[].postcodes requiredstringPostcode prefixes that belong to it
totalMatches requiredinteger

Errors

Errors are problem JSON. Each issue names the field to fix and how to fix it. See every error code and its fix.