search_bills

Pack: congress · Endpoint: https://gateway.pipeworx.io/congress/mcp

Search US FEDERAL congressional bills (US House & Senate, national laws) by keyword. Returns bill type, number, title, status, sponsor, and introduction date. Use get_bill with the ID for full details. NOTE: this is the US Congress (federal) ONLY — for STATE legislature bills (e.g. California, Texas, New York, or any US state legislation) use legiscan or openstates instead, not this tool.

Parameters

NameTypeRequiredDescription
querystringyesKeywords to search for in bill titles
limitnumbernoNumber of results to return (default: 10, max: 100)

Example call

Arguments

{
  "query": "climate change"
}

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":"search_bills","arguments":{"query":"climate change"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('search_bills', {
  "query": "climate change"
});

More examples

{
  "query": "healthcare reform",
  "limit": 25
}

Response shape

Always returns: query, total, returned, bills

FieldTypeDescription
querystringSearch query used
totalnumberTotal matching bills available
returnednumberNumber of bills returned
billsarray
Full JSON Schema
{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "Search query used"
    },
    "total": {
      "type": "number",
      "description": "Total matching bills available"
    },
    "returned": {
      "type": "number",
      "description": "Number of bills returned"
    },
    "bills": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number",
            "description": "Bill ID"
          },
          "bill_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Bill type code"
          },
          "bill_type_label": {
            "type": [
              "string",
              "null"
            ],
            "description": "Bill type label"
          },
          "number": {
            "type": [
              "number",
              "null"
            ],
            "description": "Bill number"
          },
          "congress": {
            "type": [
              "number",
              "null"
            ],
            "description": "Congress number"
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Full bill title"
          },
          "title_without_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Bill title without number prefix"
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "description": "Current status code"
          },
          "status_label": {
            "type": [
              "string",
              "null"
            ],
            "description": "Current status label"
          },
          "status_date": {
            "type": [
              "string",
              "null"
            ],
            "description": "Date of current status"
          },
          "introduced_date": {
            "type": [
              "string",
              "null"
            ],
            "description": "Bill introduction date"
          },
          "sponsor_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Primary sponsor name"
          },
          "link": {
            "type": [
              "string",
              "null"
            ],
            "description": "GovTrack bill URL"
          }
        },
        "required": [
          "id"
        ]
      }
    }
  },
  "required": [
    "query",
    "total",
    "returned",
    "bills"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "congress": {
      "url": "https://gateway.pipeworx.io/congress/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 21, 2026