Skip to main content
Glama
zachegner
by zachegner

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoLogging level (DEBUG, INFO, WARNING, ERROR)INFO
RETRY_ATTEMPTSNoNumber of retry attempts for failed requests3
REQUEST_TIMEOUTNoRequest timeout in seconds300
EPA_API_BASE_URLNoBase URL for EPA Envirofacts APIhttps://data.epa.gov/efservice/
GEOCODING_API_KEYNoAPI key for geocoding service
GEOCODING_SERVICENoGeocoding service to usenominatim
GEOCODING_USER_AGENTNoUser agent string for geocoding requests
MAX_RESULTS_PER_QUERYNoMaximum results per API query1000

Tools

Functions exposed to the LLM to take actions

NameDescription
health_check

System health and API connectivity check.

Returns: Health status information including EPA API connectivity

environmental_summary_by_location

Get comprehensive environmental data for a location.

Provides environmental summary including nearby regulated facilities, chemical releases, water quality violations, and hazardous waste sites within a specified radius.

Args: location: Address, city, or ZIP code radius_miles: Search radius in miles (default: 5.0)

Returns: Comprehensive environmental summary

search_facilities_tool

Search for EPA-regulated facilities using various filters.

Search for facilities in the EPA's Facility Registry Service using facility name, NAICS code, state, ZIP code, or city. At least one search parameter must be provided.

Args: facility_name: Partial or full facility name (uses contains matching) naics_code: NAICS industry code state: Two-letter state code (e.g., 'NY', 'CA') zip_code: 5-digit ZIP code city: City name limit: Maximum results to return (default: 100)

Returns: List of facilities with registry ID, name, address, coordinates, active programs, industry codes, and status information

get_facility_compliance_history_tool

Get compliance and enforcement history for an EPA-regulated facility.

Retrieves compliance status, violations, and enforcement history for EPA-regulated facilities across RCRA and TRI programs. Supports both FRS registry IDs and program-specific IDs with intelligent fallback logic.

Args: registry_id: FRS Registry ID or program-specific ID (RCRA Handler ID, TRI Facility ID) program: Optional program filter ('TRI' or 'RCRA') years: Historical years to include (default: 5)

Returns: Complete compliance history with facility information, compliance records, violations, and summary statistics

get_chemical_release_data

Query TRI chemical releases with flexible search parameters.

Provides comprehensive chemical release data from the Toxics Release Inventory (TRI), allowing searches by chemical name, CAS number, state, county, and year.

Args: chemical_name: Chemical name (partial match) cas_number: CAS Registry Number (exact match) state: Two-letter state code county: County name (filtered client-side) year: Reporting year (None for most recent available) limit: Maximum results to return (default: 100)

Returns: Comprehensive chemical release data with aggregations

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zachegner/envirofacts-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server