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
| Name | Type | Required | Description |
|---|---|---|---|
docket_id | string | no | Filter to a docket |
document_id | string | no | Filter to a single document |
query | string | no | Free-text query |
posted_from | string | no | YYYY-MM-DD |
posted_to | string | no | YYYY-MM-DD |
page_size | number | no | 5-250 |
page_number | number | no | 1-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
| Field | Type | Description |
|---|---|---|
total | integer | null | Total number of comments matching the query |
page | integer | null | Current page number |
page_size | integer | null | Number of results per page |
total_pages | integer | null | Total number of pages |
returned | integer | Number of results in this response |
results | array | List 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.