lerg_query
Retrieve telecom routing data from LERG tables, such as carrier by OCN or NPA-NXX info, by applying field-value filters.
Instructions
Query any LERG table by field values. Common queries: carrier by OCN (lerg_1, fields: ocn_num,ocn_name,ocn_state), NPA-NXX info (lerg_6, fields: npa,nxx,loc_name,ocn,switch,lata), switch details (lerg_7, fields: switch,ocn,aocn), LRN registry (lerg_12, fields: lrn,lata,switch,ocn). Filter format: field=value, multiple filters joined with & (e.g. npa=303&nxx=629).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_name | Yes | Table to query (e.g. lerg_1, lerg_6) | |
| fields | Yes | Comma-separated field names to return (e.g. ocn_num,ocn_name,ocn_state) | |
| query | Yes | Filter in field=value format, multiple filters joined with & (e.g. ocn_state=CO or npa=303&nxx=629) | |
| limit | No | Max results (default 100, max 10000) | |
| offset | No | Pagination offset (default 0) |