listCountries
List countries with pagination to resolve country names to ISO 3166-1 alpha-2 codes or derive URL slugs. Supports filtering and sorting by fields like country_code, country_name, and active status.
Instructions
List countries - Paginated enumeration of countries in the global reference table. Read-only reference.
Use when: resolving a country name to its 2-letter country_code (ISO 3166-1 alpha-2) for cross-referencing in location_states.country_sn / location_cities.country_sn, or deriving a country URL slug.
Country URL slug derivation: BD does NOT store a country_filename field. To construct the country segment of a search-result URL, derive it from country_name by lowercasing and replacing spaces with hyphens. Example: country_name="United States" -> country-slug="united-states".
Pagination + filter/sort: standard. Useful filters: country_code, country_name, active.
Returns: rows with country_id, country_code, country_name, active (1=active, 0=inactive).
System-critical table - create & delete deliberately omitted. Countries are a global reference list. Use updateCountry only for corrections (e.g. toggling active).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Records per page (default 25, max 100) | |
| page | No | Pagination cursor (use next_page from previous response) | |
| property | No | Field name to filter by | |
| property_value | No | Value to filter by | |
| property_operator | No | Filter operator: =, LIKE, >, <, >=, <= | |
| order_column | No | Column to sort by | |
| order_type | No | Sort direction: ASC or DESC |