get_public_laws

Pack: congress · 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_public_laws for the schema, then POST the same URL with its arguments for the data.

ANSWERS “how many public laws has the 119th Congress passed” / “most recent public law” / “list of laws enacted this Congress” — returns public (or private) laws enacted in one Congress, from congress.gov’s official /law endpoint. GovTrack never had an equivalent endpoint at all. Returns the total count, the most recent law (number, originating bill, title, enactment date), and the list of laws (newest first). Requires an API key (see get_bill).

Parameters

NameTypeRequiredDescription
congressnumberyesCongress number, e.g. 119 for the 119th Congress (2025–2026).
law_typestringno”pub” (default, public laws) or “priv” (private laws).
limitnumbernoNumber of laws to return (default: 20, max: 100).

Example call

Arguments

{
  "congress": 119
}

curl

curl -X POST https://gateway.pipeworx.io/congress/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_public_laws","arguments":{"congress":119}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('get_public_laws', {
  "congress": 119
});

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 congress pack
{
  "mcpServers": {
    "congress": {
      "url": "https://gateway.pipeworx.io/congress/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 16, 2026