get_granule

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/get_granule for the schema, then POST the same URL with its arguments for the data.

Fetch summary metadata for a single granule (sub-unit) within a GovInfo package, given package_id and granule_id (both from list_granules). Returns title, class, and provenance fields from the GovInfo summary endpoint.

Parameters

NameTypeRequiredDescription
package_idstringyesGovInfo packageId
granule_idstringyesGranule ID

Example call

Arguments

{
  "package_id": "FR-2024-05-12",
  "granule_id": "2024-05-12-1"
}

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":"get_granule","arguments":{"package_id":"FR-2024-05-12","granule_id":"2024-05-12-1"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('get_granule', {
  "package_id": "FR-2024-05-12",
  "granule_id": "2024-05-12-1"
});

Response shape

Full JSON Schema
{
  "type": "object",
  "description": "Granule metadata for sub-unit within package"
}

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