search_comments

Pack: regulations-gov · Endpoint: https://gateway.pipeworx.io/regulations-gov/mcp

Public comments filed on a docket or document. Filter by docketId, documentId (e.g., “EPA-HQ-OAR-2021-0317-0001”), free-text, or date.

Parameters

NameTypeRequiredDescription
docket_idstringnoFilter to a docket
document_idstringnoFilter to a single document
querystringnoFree-text query
posted_fromstringnoYYYY-MM-DD
posted_tostringnoYYYY-MM-DD
page_sizenumberno5-250
page_numbernumberno1-based page

Example call

Arguments

{
  "docket_id": "EPA-HQ-OAR-2021-0317"
}

curl

curl -X POST https://gateway.pipeworx.io/regulations-gov/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_comments","arguments":{"docket_id":"EPA-HQ-OAR-2021-0317"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('search_comments', {
  "docket_id": "EPA-HQ-OAR-2021-0317"
});

More examples

{
  "document_id": "EPA-HQ-OAR-2021-0317-0001",
  "posted_from": "2023-06-01",
  "posted_to": "2023-12-31"
}

Response shape

Always returns: total, page, page_size, total_pages, returned, results

FieldTypeDescription
totalinteger | nullTotal number of comments matching the query
pageinteger | nullCurrent page number
page_sizeinteger | nullNumber of results per page
total_pagesinteger | nullTotal number of pages
returnedintegerNumber of results in this response
resultsarrayList of comment objects
Full JSON Schema
{
  "type": "object",
  "properties": {
    "total": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Total number of comments matching the query"
    },
    "page": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Current page number"
    },
    "page_size": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Number of results per page"
    },
    "total_pages": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Total number of pages"
    },
    "returned": {
      "type": "integer",
      "description": "Number of results in this response"
    },
    "results": {
      "type": "array",
      "description": "List of comment objects",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Comment ID"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Resource type"
          }
        },
        "additionalProperties": true
      }
    }
  },
  "required": [
    "total",
    "page",
    "page_size",
    "total_pages",
    "returned",
    "results"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "regulations-gov": {
      "url": "https://gateway.pipeworx.io/regulations-gov/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 7, 2026