Skip to main content
Glama
Apify Public Data & Leads

Apify Public Data & Leads

EPA ECHO Facility Compliance Search

epa_facility_search
Read-only

Search EPA ECHO for US regulated facilities by state, name, NAICS code, or environmental program, and export compliance, inspection, and penalty data to screen regulatory risk.

Instructions

Search the official EPA ECHO service for US regulated facilities by state, facility name, NAICS code, or environmental program, and export compliance status, inspection, and penalty data. Set violations_only to keep only facilities currently in violation. City and ZIP filtering are available in the underlying Actor, not this MCP tool.

Behavioral Transparency:

  • Execution: Network call executed synchronously in the cloud via Apify Actor 'captainhandsome/epa-echo-facility-search'.

  • Side Effects: Reads public sources and creates a billed Actor run and dataset on your Apify account.

  • Authentication: Requires APIFY_TOKEN environment variable.

  • Latency & Limits: Typical run duration is 10-35 seconds; timeout capped at 120 seconds.

Usage Guidelines:

  • When to use: Use for environmental compliance due diligence, regulatory risk screening of a facility or region, industry-wide (NAICS) violation surveys, or enforcement/penalty history lookups.

  • When NOT to use: Do not use for corporate registry, campaign finance, clinical trial, or FDA drug/device data.

  • Named alternatives: Use 'clinical_trials_search' for medical studies, 'openfda_search' for FDA drug/device data, 'fec_campaign_finance_search' for political funding, or 'french_company_search' for the French corporate registry.

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": "epa_facility_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateYesTwo-letter US state code to search within (e.g. 'RI', 'CA').
programNoEnvironmental program to filter by: 'A' Clean Air Act, 'W' Clean Water Act, 'S' Safe Drinking Water Act, 'R' RCRA hazardous waste. Defaults to 'A' (Clean Air Act) when omitted.
naics_codeNoIndustry NAICS code to filter by, e.g. '327910'.
max_resultsNoMaximum number of facility records to retrieve. Defaults to 10.
facility_nameNoSubstring to match against the facility name.
violations_onlyNoKeep only facilities currently showing a violation or significant non-compliance. Defaults to false: all matching facilities, with their compliance status.

Output Schema

NameRequiredDescriptionDefault
runNo
errorNo
statusYes
resultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.6.2
    • addedInput schema / properties / violations_only
      Added value: +{
      +  "default": false,
      +  "description": "Keep only facilities currently showing a violation or significant non-compliance. Defaults to false: all matching facilities, with their compliance status.",
      +  "type": "boolean"
      +}
  2. Changed28 schema fields changedv1.1.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedOutput schema / properties / error
      Added value: +{
      +  "type": "object"
      +}
    • removedOutput schema / properties / results / description
      Removed value: -"Collection of EPA-regulated facility records with compliance detail."
    • addedOutput schema / properties / results / items / properties / city / title
      Added value: +"City"
    • changedOutput schema / properties / results / items / properties / city / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / results / items / properties / compliance_status / description
      Previous value: -"Overall current compliance status, e.g. 'Violation Identified'."New value: +"Overall current compliance status across all programs."
    • addedOutput schema / properties / results / items / properties / compliance_status / title
      Added value: +"Compliance status"
    • changedOutput schema / properties / results / items / properties / compliance_status / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / results / items / properties / naics_codes / description
      Previous value: -"Space-separated NAICS industry codes for the facility."New value: +"North American Industry Classification System codes reported for the facility."
    • addedOutput schema / properties / results / items / properties / naics_codes / title
      Added value: +"NAICS codes"
    • changedOutput schema / properties / results / items / properties / naics_codes / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / results / items / properties / name / title
      Added value: +"Facility name"
    • changedOutput schema / properties / results / items / properties / name / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / results / items / properties / registry_id / description
      Previous value: -"EPA Facility Registry Service ID, the stable key for this facility."New value: +"EPA Facility Registry Service ID. The stable key for this facility across every EPA system."
    • addedOutput schema / properties / results / items / properties / registry_id / title
      Added value: +"Registry ID"
    • changedOutput schema / properties / results / items / properties / registry_id / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / results / items / properties / state / title
      Added value: +"State"
    • changedOutput schema / properties / results / items / properties / state / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / results / items / properties / total_penalties / description
      Previous value: -"Total dollar amount of penalties assessed against the facility."New value: +"Total penalties assessed across all programs in the last five years, in US dollars."
    • addedOutput schema / properties / results / items / properties / total_penalties / title
      Added value: +"Total penalties (USD)"
    • changedOutput schema / properties / results / items / properties / total_penalties / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "null"
      +]
    • changedOutput schema / properties / results / items / properties / url / description
      Previous value: -"Direct link to the EPA ECHO detailed facility report."New value: +"Link to the full EPA detailed facility report for this facility."
    • addedOutput schema / properties / results / items / properties / url / title
      Added value: +"Report URL"
    • changedOutput schema / properties / results / items / properties / url / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / results / items / required
      Removed value: -[
      -  "registry_id",
      -  "name"
      -]
    • addedOutput schema / properties / run
      Added value: +{
      +  "type": "object"
      +}
    • addedOutput schema / properties / status
      Added value: +{
      +  "enum": [
      +    "success",
      +    "empty_unverified",
      +    "partial",
      +    "error"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "results"
      -]New value: +[
      +  "results",
      +  "status"
      +]
  3. Addedv1.0.11

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well past the annotations by disclosing that this is a synchronous cloud call against a named Apify Actor, that it creates a billed run and dataset on the caller's Apify account, that APIFY_TOKEN is required, and that runs take 10-35 seconds with a 120-second cap. Note a mild tension: readOnlyHint=true refers to the EPA source data, while the description discloses account-side side effects (billing, dataset creation) that the annotation does not capture — the description resolves this rather than contradicting it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence front-loads purpose and scope before any detail, and the labeled sections make skimming easy. It is longer than strictly necessary — the section headers are somewhat boilerplate — but every line carries actionable content rather than filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description needn't explain return values, and it doesn't. Given six parameters at full schema coverage, a required state argument, and open-world network behavior, the description covers the remaining unknowns an agent needs: auth, latency, billing, and the missing city/ZIP filters.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description adds real value on top: it clarifies that violations_only restricts to facilities 'currently in violation' and explicitly documents the parameter space that is absent (city/ZIP). It otherwise restates the filter list the schema already documents, so it stops short of a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Search the official EPA ECHO service for US regulated facilities') and enumerates the filter axes: state, facility name, NAICS code, program. It also explicitly bounds scope by noting city and ZIP filtering exist in the underlying Actor but not in this MCP tool, which prevents an agent from expecting filters that aren't there.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit 'When to use' scenarios (compliance due diligence, regulatory risk screening, NAICS violation surveys, penalty history) and explicit 'When NOT to use' domains (corporate registry, campaign finance, clinical trials, FDA). It names four concrete alternatives — clinical_trials_search, openfda_search, fec_campaign_finance_search, french_company_search — each mapped to the condition that selects it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.