search_bills

Pack: uk-parliament · Endpoint: https://gateway.pipeworx.io/uk-parliament/mcp

Search bills by title / session / stage / sponsoring member.

Parameters

NameTypeRequiredDescription
querystringnoSearch bill title and short title
sessionnumbernoSession id (numeric)
stagenumbernoStage id (1=intro, 2=first reading, etc.)
member_idnumbernoSponsoring member id
current_housenumberno
sortstringnoTitleAscending | TitleDescending | DateUpdatedAscending | DateUpdatedDescending
takenumberno1-50 (default 20)
skipnumberno0-based offset

Example call

Arguments

{
  "query": "Online Safety Bill"
}

curl

curl -X POST https://gateway.pipeworx.io/uk-parliament/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_bills","arguments":{"query":"Online Safety Bill"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('search_bills', {
  "query": "Online Safety Bill"
});

More examples

{
  "stage": 2,
  "current_house": 1,
  "sort": "DateUpdatedDescending",
  "take": 10
}

Response shape

FieldTypeDescription
billsarrayList of bill records matching search criteria
totalResultsnumberTotal count of matching bills
Full JSON Schema
{
  "type": "object",
  "description": "Search results for parliamentary bills",
  "properties": {
    "bills": {
      "type": "array",
      "description": "List of bill records matching search criteria",
      "items": {
        "type": "object",
        "description": "Individual bill record"
      }
    },
    "totalResults": {
      "type": "number",
      "description": "Total count of matching bills"
    }
  }
}

Connect

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

{
  "mcpServers": {
    "uk-parliament": {
      "url": "https://gateway.pipeworx.io/uk-parliament/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026