EPA Envirofacts Data Service API — GraphQL

GraphQL. 1 operations. Lead operation: Execute Envirofacts GraphQL Query. Self-contained Naftiko capability covering one EPA business surface.

Run with Naftiko EPAGraphQL

What You Can Do

POST
Envirofactsgraphql — Execute Envirofacts GraphQL Query
/v1/enviro/dmap-graphql-api

MCP Tools

execute-envirofacts-graphql-query

Execute Envirofacts GraphQL Query

read-only

Capability Spec

envirofacts-graphql.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: EPA Envirofacts Data Service API — GraphQL
  description: 'GraphQL. 1 operations. Lead operation: Execute Envirofacts GraphQL Query. Self-contained Naftiko capability covering one EPA business surface.'
  tags:
    - EPA
    - GraphQL
  created: '2026-05-29'
  modified: '2026-05-29'
binds:
  - namespace: env
    keys: {}
capability:
  consumes:
    - type: http
      namespace: envirofacts-graphql
      baseUri: https://data.epa.gov
      description: EPA Envirofacts Data Service API — GraphQL business capability. Self-contained, no shared references.
      resources:
        - name: enviro-dmap-graphql-api
          path: /enviro/dmap-graphql-api
          operations:
            - name: envirofactsGraphQL
              method: POST
              description: Execute Envirofacts GraphQL Query
              inputParameters:
                - name: body
                  in: body
                  type: object
                  required: true
                  description: Request body payload.
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: $.
  exposes:
    - type: rest
      namespace: envirofacts-graphql-rest
      port: 8080
      description: REST adapter for EPA Envirofacts Data Service API — GraphQL. One Spectral-compliant resource per consumed operation, prefixed with /v1.
      resources:
        - path: /v1/enviro/dmap-graphql-api
          name: enviro-dmap-graphql-api
          description: REST surface for Execute Envirofacts GraphQL Query.
          operations:
            - method: POST
              name: envirofactsGraphQL
              description: Execute Envirofacts GraphQL Query
              call: envirofacts-graphql.envirofactsGraphQL
              with:
                body: rest.body
              outputParameters:
                - type: object
                  mapping: $.
    - type: mcp
      namespace: envirofacts-graphql-mcp
      port: 9090
      transport: http
      description: MCP adapter for EPA Envirofacts Data Service API — GraphQL. One tool per consumed operation, routed inline through this capability's consumes block.
      tools:
        - name: execute-envirofacts-graphql-query
          description: Execute Envirofacts GraphQL Query
          hints:
            readOnly: true
            destructive: false
            idempotent: false
          call: envirofacts-graphql.envirofactsGraphQL
          with:
            body: tools.body
          outputParameters:
            - type: object
              mapping: $.