echo_search_by_violation
Pack: epa-echo · Endpoint: https://gateway.pipeworx.io/epa-echo/mcp
Find facilities in significant non-compliance, filterable by state and/or program (water, air, waste). Returns facility IDs and violation status.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
state | string | no | Two-letter state abbreviation (e.g., “TX”). |
program | string | no | Program filter: “CWA”, “CAA”, “RCRA”, or “ALL” (default “ALL”). |
limit | number | no | Max results to return (default 20, max 100). |
Example call
Arguments
{
"state": "CA",
"program": "CWA"
}
curl
curl -X POST https://gateway.pipeworx.io/epa-echo/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"echo_search_by_violation","arguments":{"state":"CA","program":"CWA"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('echo_search_by_violation', {
"state": "CA",
"program": "CWA"
});
More examples
{
"state": "TX",
"limit": 100
}
Response shape
Always returns: total_count, returned, program, facilities
| Field | Type | Description |
|---|---|---|
total_count | number | Total number of facilities in significant non-compliance |
returned | number | Number of facilities returned in this response |
program | string | Program filter applied (CWA, CAA, RCRA, or ALL) |
facilities | array | List of facilities in significant non-compliance |
Full JSON Schema
{
"type": "object",
"properties": {
"total_count": {
"type": "number",
"description": "Total number of facilities in significant non-compliance"
},
"returned": {
"type": "number",
"description": "Number of facilities returned in this response"
},
"program": {
"type": "string",
"description": "Program filter applied (CWA, CAA, RCRA, or ALL)"
},
"facilities": {
"type": "array",
"description": "List of facilities in significant non-compliance",
"items": {
"type": "object",
"properties": {
"registry_id": {
"type": [
"string",
"null"
],
"description": "EPA Registry ID for the facility"
},
"name": {
"type": [
"string",
"null"
],
"description": "Facility name"
},
"street": {
"type": [
"string",
"null"
],
"description": "Street address"
},
"city": {
"type": [
"string",
"null"
],
"description": "City name"
},
"state": {
"type": [
"string",
"null"
],
"description": "State abbreviation"
},
"zip": {
"type": [
"string",
"null"
],
"description": "ZIP code"
},
"latitude": {
"type": [
"number",
"null"
],
"description": "Geographic latitude"
},
"longitude": {
"type": [
"number",
"null"
],
"description": "Geographic longitude"
},
"cwa_status": {
"type": [
"string",
"null"
],
"description": "Clean Water Act compliance status"
},
"caa_status": {
"type": [
"string",
"null"
],
"description": "Clean Air Act compliance status"
},
"rcra_status": {
"type": [
"string",
"null"
],
"description": "Resource Conservation and Recovery Act compliance status"
},
"sdwis_status": {
"type": [
"string",
"null"
],
"description": "Safe Drinking Water Information System status"
},
"sic_codes": {
"type": [
"string",
"null"
],
"description": "Standard Industrial Classification codes"
},
"naics_codes": {
"type": [
"string",
"null"
],
"description": "North American Industry Classification System codes"
},
"quarters_in_noncompliance": {
"type": [
"number",
"null"
],
"description": "Number of quarters facility was in non-compliance"
},
"inspection_count": {
"type": [
"number",
"null"
],
"description": "Total number of inspections"
},
"formal_action_count": {
"type": [
"number",
"null"
],
"description": "Number of formal enforcement actions"
},
"total_penalties": {
"type": [
"number",
"null"
],
"description": "Total penalties assessed in dollars"
}
}
}
}
},
"required": [
"total_count",
"returned",
"program",
"facilities"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"epa-echo": {
"url": "https://gateway.pipeworx.io/epa-echo/mcp"
}
}
}
See Getting Started for client-specific install steps.