list_collections

Pack: govinfo · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/list_collections for the schema, then POST the same URL with its arguments for the data.

List GovInfo collections (BILLS, CFR, USCODE, FR, CHRG, CRPT, HMAN, PLAW, SERIALSET, USCOURTS, etc.) with package counts. Use the collection code with search_packages to filter.

Example call

Arguments

{}

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_collections","arguments":{}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('list_collections', {});

Response shape

Always returns: count, collections

FieldTypeDescription
countnumberTotal number of collections
collectionsarrayList of available GovInfo collections
Full JSON Schema
{
  "type": "object",
  "properties": {
    "count": {
      "type": "number",
      "description": "Total number of collections"
    },
    "collections": {
      "type": "array",
      "description": "List of available GovInfo collections",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Collection code (e.g., BILLS, CFR)"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Collection name"
          },
          "package_count": {
            "type": [
              "number",
              "null"
            ],
            "description": "Number of packages in collection"
          },
          "granule_count": {
            "type": [
              "number",
              "null"
            ],
            "description": "Number of granules in collection"
          }
        }
      }
    }
  },
  "required": [
    "count",
    "collections"
  ]
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the govinfo pack
{
  "mcpServers": {
    "govinfo": {
      "url": "https://gateway.pipeworx.io/govinfo/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 5, 2026