Skip to main content
Glama
Open Data B2B & Compliance MCP Server

Open Data B2B & Compliance MCP Server

search_epa_facility_violations

Read-onlyIdempotent

Screen US industrial facilities for Clean Water Act, Clean Air Act, and RCRA hazardous waste violations, SNC/HPV flags, inspections, and civil penalties using EPA ECHO data.

Instructions

Screen US industrial facilities, manufacturing plants, refineries, and utilities for Clean Water Act (NPDES), Clean Air Act, and RCRA hazardous waste violations, SNC/HPV flags, inspections, and civil penalties via official US EPA ECHO REST APIs.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_epa_facility_violations"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoOptional city name filter.
statesNo2-letter US state codes (e.g., ["DE"], ["TX", "LA"]). Default: ["DE"].
programsNoEPA statute programs to query: "cwa" (Clean Water Act NPDES), "air" (Clean Air Act), "rcra" (RCRA Hazardous Waste). Default: ["cwa", "air"].
naicsCodeNoOptional 2-to-6 digit NAICS industry code prefix (e.g., "325").
maxResultsNoMaximum facility records to return (1-50 in MCP mode). Default: 10.
facilityNameNoOptional partial or exact facility/company name filter.
minPenaltyUsdNoMinimum total formal enforcement civil penalties in USD. Default: 0.
violationsOnlyNoReturn only facilities with violations, SNC/HPV flags, formal enforcement actions, or penalties. Default: true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=true, and destructiveHint=false, so the safety profile is covered. The description adds real value beyond that by disclosing provenance (official US EPA ECHO REST APIs) and the record contents (violations, SNC/HPV flags, inspections, penalties). However, it says nothing about result ordering, freshness, rate limits, or failure behavior, so the behavioral picture remains incomplete.

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?

It is a single dense sentence that front-loads the verb, the target population, and the coverage, with no filler or marketing language. The only cost is that cramming entities, statutes, and return fields into one sentence makes it slightly harder to scan than a short structured list.

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

Completeness4/5

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

With eight optional parameters and no output schema, the description usefully compensates by naming the kinds of records returned (violations, SNC/HPV flags, inspections, penalties) and the upstream API. What is missing is any note on pagination/truncation behavior beyond the maxResults cap, result ordering, or how the default Delaware-only state scope affects an agent's expectations.

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

Parameters3/5

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

Schema description coverage is 100% and every parameter carries its own description plus defaults, so the schema already does the heavy lifting. The description's mention of the three programs and penalty/flag concepts largely mirrors what the schema documents, adding no extra syntax, format, or interaction guidance (e.g., how states, programs, and naicsCode combine).

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

Purpose4/5

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

The description uses a specific verb ('Screen') with a concrete population (US industrial facilities, manufacturing plants, refineries, utilities) and enumerates the exact regulatory regimes covered (CWA/NPDES, Clean Air Act, RCRA) plus the returned artifacts (SNC/HPV flags, inspections, civil penalties). It is far more specific than a generic 'search' tool and its data-source mention (EPA ECHO REST APIs) pins down scope. It does not name or contrast any sibling such as lookup_facility_compliance, so it stops short of a 5.

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

Usage Guidelines3/5

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

Usage is implied by the words 'Screen ... for ... violations,' suggesting compliance/due-diligence screening, but there is no explicit statement of when to pick this over lookup_facility_compliance or search_code_violation_leads, nor any when-not guidance. The agent must infer fit from the statute coverage and the default filters in the schema.

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