list_granules
Pack: govinfo · Endpoint: https://gateway.pipeworx.io/govinfo/mcp
List granules within a package — e.g., sections of a CFR title, individual entries in a Federal Register issue. Returns granule IDs + titles.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
package_id | string | yes | GovInfo packageId |
page_size | number | no | 1-100 (default 100) |
offset_mark | string | no | Pagination cursor |
Example call
Arguments
{
"package_id": "BILLS-118hr1234ih"
}
curl
curl -X POST https://gateway.pipeworx.io/govinfo/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_granules","arguments":{"package_id":"BILLS-118hr1234ih"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('list_granules', {
"package_id": "BILLS-118hr1234ih"
});
More examples
{
"package_id": "CFR-2024-title29-vol5",
"page_size": 50
}
Response shape
Always returns: package_id, total, returned, granules
| Field | Type | Description |
|---|---|---|
package_id | string | GovInfo package ID |
total | number | Total granules in package |
next_offset_mark | string | null | Pagination cursor for next results |
returned | number | Number of granules returned |
granules | array | List of granules in package |
Full JSON Schema
{
"type": "object",
"properties": {
"package_id": {
"type": "string",
"description": "GovInfo package ID"
},
"total": {
"type": "number",
"description": "Total granules in package"
},
"next_offset_mark": {
"type": [
"string",
"null"
],
"description": "Pagination cursor for next results"
},
"returned": {
"type": "number",
"description": "Number of granules returned"
},
"granules": {
"type": "array",
"description": "List of granules in package",
"items": {
"type": "object",
"properties": {
"id": {
"type": [
"string",
"null"
],
"description": "Granule ID"
},
"title": {
"type": [
"string",
"null"
],
"description": "Granule title"
},
"class": {
"type": [
"string",
"null"
],
"description": "Granule class/type"
},
"link": {
"type": [
"string",
"null"
],
"description": "URL to granule on GovInfo"
}
}
}
}
},
"required": [
"package_id",
"total",
"returned",
"granules"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"govinfo": {
"url": "https://gateway.pipeworx.io/govinfo/mcp"
}
}
}
See Getting Started for client-specific install steps.