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

Open Data B2B & Compliance MCP Server

lookup_facility_compliance

Read-onlyIdempotent

Retrieve US EPA compliance history for a facility by FRS Registry ID, permit ID, or name to check permits, inspections, violations, SNC status, and penalties across CWA, air, and RCRA.

Instructions

Look up cross-statute US EPA compliance history, permits, inspections, SNC status, and penalties for a specific facility by EPA FRS Registry ID, source permit ID (NPDES/AIR/RCRA), or facility name.

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

Input Schema

NameRequiredDescriptionDefault
cityNoOptional city filter for facilityName lookups.
stateNoOptional 2-letter US state code to scope facilityName lookups (e.g., "DE").
programsNoStatute programs to check for this facility. Default: ["cwa", "air", "rcra"].
maxResultsNoMaximum permit compliance records to return (1-50). Default: 10.
registryIdNoEPA FRS 12-digit Registry ID (e.g., "110000338652").
facilityNameNoFacility or company name when Registry ID / Permit ID is unknown.
sourcePermitIdNoProgram-specific NPDES, CAA, or RCRA source permit ID (e.g., "DE0000299").
violationsOnlyNoWhen false (default for lookup), returns both clean and non-compliant permits held by the facility.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is fully covered without description help. The description adds real domain context beyond that — cross-statute coverage and the specific record classes returned (permits, inspections, SNC, penalties) — but says nothing about behavior on no-match, rate limits, or result volume beyond the schema's maxResults.

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

Conciseness5/5

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

A single front-loaded sentence that names the resource and its contents before the identification keys. No filler, no repetition of the title, and nothing an agent must skip past to reach the actionable part.

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?

For an eight-parameter, all-optional read-only lookup with full schema coverage, the description supplies what the structured fields cannot: what data categories come back. With no output schema, a brief note on result shape or no-match handling would close the remaining gap, but nothing needed to invoke the tool correctly is missing.

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%, so every one of the eight parameters is already documented, including the default program set and the 1-50 maxResults range. The description reinforces that the three ID/name parameters are alternative lookup keys for the same facility, but adds no syntax, format, or precedence rules beyond what the schema provides.

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 ("Look up") and a well-scoped resource: cross-statute US EPA compliance history covering permits, inspections, SNC status, and penalties for one facility. The three lookup key types (FRS Registry ID, source permit ID, facility name) are stated, which implicitly distinguishes it from a broader search tool, but no sibling is named explicitly.

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 rather than stated: the agent can infer this is the identifier-based single-facility tool, and the input schema adds the useful fallback rule (facility name when Registry ID / Permit ID is unknown). There is no explicit when-to-use / when-not-to-use guidance and no routing to search_epa_facility_violations for exploratory or multi-facility queries.

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