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

NameTypeRequiredDescription
package_idstringyesGovInfo packageId
page_sizenumberno1-100 (default 100)
offset_markstringnoPagination 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

FieldTypeDescription
package_idstringGovInfo package ID
totalnumberTotal granules in package
next_offset_markstring | nullPagination cursor for next results
returnednumberNumber of granules returned
granulesarrayList 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.

Regenerated from source · build July 6, 2026