Screen a state's US NPDES permits by industry
list_permitsWhich facilities in a US state hold a discharge permit, which of them are in one industry (paper mills, meat packing, sewage treatment), which went over a limit lately or face a renewal, and which must meet a new or tighter limit already written into their permit? The state's individual NPDES permits with limits, as EPA's national file (ECHO / ICIS-NPDES) lists them, in one call: each permit's number, facility name, whether EPA rates it major, its primary SIC code and the words EPA prints for it, its 12-month record (times over a limit, on which parameters, required values not reported; null when EPA's file holds no reports), its expiry and renewal, EPA's facility type and design flow, the limits taking effect later (each with its begin date and the plant's median reported value today), and the addresses of its page and of get_permit's answer. screen counts the industry's record, renewals and later limits in one sentence, and screen.narrow gives the address of each narrower list. industry keeps the permits whose SIC description has a word starting with each word given; sic the codes that start with the digits given; facility_type and min_flow_mgd the sewage plants or industrial facilities, and those of at least that design flow; over_limit, parameter, renewal and upcoming keep those that went over a limit, over one on that parameter, whose renewal is due or past, or that have a limit taking effect later. A permit EPA's file gives no SIC never matches an industry filter (without_industry says how many), nor one with no design flow min_flow_mgd (without_flow). get_permit gives one permit's limits.
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": {
"state": "<state>"
},
"name": "list_permits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sic | No | A SIC code or its first digits, e.g. 26 or 2621. Optional. | |
| state | Yes | The state or territory's two-letter code, e.g. WI. | |
| offset | No | Where the page starts when more than 1000 match. Optional. | |
| renewal | No | expired: the permit has expired; due: its renewal application is due within 18 months or overdue; any: either. Optional. | |
| industry | No | Words of EPA's SIC description, e.g. paper, pulp, sausages, sewerage. Optional. | |
| upcoming | No | true: only the permits with a new or tighter enforceable limit taking effect after today. Optional. | |
| parameter | No | Only the permits that went over a limit on a parameter EPA names with every word given, or that a DMR's usual name stands for, e.g. phosphorus, pH, ammonia, TSS, CBOD5. Optional. | |
| over_limit | No | true: only the permits that went over a limit in the record's 12 months. Optional. | |
| min_flow_mgd | No | Only the permits whose design flow in EPA's file is at least this many million gallons a day, e.g. 1. Optional. | |
| facility_type | No | potw: publicly owned sewage treatment plants; industrial: every other facility type EPA's file gives as NON-POTW. Optional. |