EPA Envirofacts Data Service API — Data Service

Data Service. 3 operations. Lead operation: Query Envirofacts Table. Self-contained Naftiko capability covering one EPA business surface.

Run with Naftiko EPAData Service

What You Can Do

GET
Efservicequerytable — Query Envirofacts Table
/v1/efservice/{table}/{format}
GET
Efservicequerytablefiltered — Query Envirofacts Table with Filter
/v1/efservice/{table}/{filter}/{format}
GET
Efservicequerytablepaginated — Query Envirofacts Table with Filter and Pagination
/v1/efservice/{table}/{filter}/{range}/{format}

MCP Tools

query-envirofacts-table

Query Envirofacts Table

read-only idempotent
query-envirofacts-table-filter

Query Envirofacts Table with Filter

read-only idempotent
query-envirofacts-table-filter-pagination

Query Envirofacts Table with Filter and Pagination

read-only idempotent

Capability Spec

envirofacts-data-service.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: EPA Envirofacts Data Service API — Data Service
  description: 'Data Service. 3 operations. Lead operation: Query Envirofacts Table. Self-contained Naftiko capability covering one EPA business surface.'
  tags:
    - EPA
    - Data Service
  created: '2026-05-29'
  modified: '2026-05-29'
binds:
  - namespace: env
    keys: {}
capability:
  consumes:
    - type: http
      namespace: envirofacts-data-service
      baseUri: https://data.epa.gov
      description: EPA Envirofacts Data Service API — Data Service business capability. Self-contained, no shared references.
      resources:
        - name: efservice-table-format
          path: /efservice/{table}/{format}
          operations:
            - name: efserviceQueryTable
              method: GET
              description: Query Envirofacts Table
              inputParameters:
                - name: table
                  in: path
                  type: string
                  required: true
                  description: Envirofacts table in `program.table` format (e.g., `rcra.rcra_facility`, `tri.tri_facility`, `sems.envirofacts_site`).
                - name: format
                  in: path
                  type: string
                  required: false
                  description: Output format (default JSON).
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: $.
        - name: efservice-table-filter-format
          path: /efservice/{table}/{filter}/{format}
          operations:
            - name: efserviceQueryTableFiltered
              method: GET
              description: Query Envirofacts Table with Filter
              inputParameters:
                - name: table
                  in: path
                  type: string
                  required: true
                  description: Envirofacts table in `program.table` format (e.g., `rcra.rcra_facility`, `tri.tri_facility`, `sems.envirofacts_site`).
                - name: filter
                  in: path
                  type: string
                  required: false
                  description: Optional filter clause `{column}{operator}{value}`. Operators include equals, notEquals, lessThan, greaterThan, beginsWith, endsWith, contains, like, in.
                - name: format
                  in: path
                  type: string
                  required: false
                  description: Output format (default JSON).
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: $.
        - name: efservice-table-filter-range-format
          path: /efservice/{table}/{filter}/{range}/{format}
          operations:
            - name: efserviceQueryTablePaginated
              method: GET
              description: Query Envirofacts Table with Filter and Pagination
              inputParameters:
                - name: table
                  in: path
                  type: string
                  required: true
                  description: Envirofacts table in `program.table` format (e.g., `rcra.rcra_facility`, `tri.tri_facility`, `sems.envirofacts_site`).
                - name: filter
                  in: path
                  type: string
                  required: false
                  description: Optional filter clause `{column}{operator}{value}`. Operators include equals, notEquals, lessThan, greaterThan, beginsWith, endsWith, contains, like, in.
                - name: range
                  in: path
                  type: string
                  required: false
                  description: Optional pagination range `first:last` (e.g., `1:100`).
                - name: format
                  in: path
                  type: string
                  required: false
                  description: Output format (default JSON).
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: $.
  exposes:
    - type: rest
      namespace: envirofacts-data-service-rest
      port: 8080
      description: REST adapter for EPA Envirofacts Data Service API — Data Service. One Spectral-compliant resource per consumed operation, prefixed with /v1.
      resources:
        - path: /v1/efservice/{table}/{format}
          name: efservice-table-format
          description: REST surface for Query Envirofacts Table.
          operations:
            - method: GET
              name: efserviceQueryTable
              description: Query Envirofacts Table
              call: envirofacts-data-service.efserviceQueryTable
              with:
                table: rest.table
                format: rest.format
              outputParameters:
                - type: object
                  mapping: $.
        - path: /v1/efservice/{table}/{filter}/{format}
          name: efservice-table-filter-format
          description: REST surface for Query Envirofacts Table with Filter.
          operations:
            - method: GET
              name: efserviceQueryTableFiltered
              description: Query Envirofacts Table with Filter
              call: envirofacts-data-service.efserviceQueryTableFiltered
              with:
                table: rest.table
                filter: rest.filter
                format: rest.format
              outputParameters:
                - type: object
                  mapping: $.
        - path: /v1/efservice/{table}/{filter}/{range}/{format}
          name: efservice-table-filter-range-format
          description: REST surface for Query Envirofacts Table with Filter and Pagination.
          operations:
            - method: GET
              name: efserviceQueryTablePaginated
              description: Query Envirofacts Table with Filter and Pagination
              call: envirofacts-data-service.efserviceQueryTablePaginated
              with:
                table: rest.table
                filter: rest.filter
                range: rest.range
                format: rest.format
              outputParameters:
                - type: object
                  mapping: $.
    - type: mcp
      namespace: envirofacts-data-service-mcp
      port: 9090
      transport: http
      description: MCP adapter for EPA Envirofacts Data Service API — Data Service. One tool per consumed operation, routed inline through this capability's consumes block.
      tools:
        - name: query-envirofacts-table
          description: Query Envirofacts Table
          hints:
            readOnly: true
            destructive: false
            idempotent: true
          call: envirofacts-data-service.efserviceQueryTable
          with:
            table: tools.table
            format: tools.format
          outputParameters:
            - type: object
              mapping: $.
        - name: query-envirofacts-table-filter
          description: Query Envirofacts Table with Filter
          hints:
            readOnly: true
            destructive: false
            idempotent: true
          call: envirofacts-data-service.efserviceQueryTableFiltered
          with:
            table: tools.table
            filter: tools.filter
            format: tools.format
          outputParameters:
            - type: object
              mapping: $.
        - name: query-envirofacts-table-filter-pagination
          description: Query Envirofacts Table with Filter and Pagination
          hints:
            readOnly: true
            destructive: false
            idempotent: true
          call: envirofacts-data-service.efserviceQueryTablePaginated
          with:
            table: tools.table
            filter: tools.filter
            range: tools.range
            format: tools.format
          outputParameters:
            - type: object
              mapping: $.