---
name: track-a-bill
description: Resolve a bill in Diurna, read official history, follow it for alerts, and monitor the change feed.
---

# Track a bill

Use this skill when a user wants status on legislation or ongoing updates. Diurna is not legal advice. Cite the official bill record and `source_url` on every status statement.

## Before you start

1. Read [Diurna agent onboarding](/agent-onboarding/SKILL.md).
2. Connect MCP with an API key when you need `follow`, `changes_feed`, or `list_alerts`.
3. Confirm `get_bill`, `search`, and account tools in `tools/list`.

## Workflow

1. **Find the bill**  
   Call `search` with `type: "bill"` and the bill number or topic, or `lookup_citation` when the user gave a formal citation.  
   REST: `GET /api/v1/search?q=HB+1234&type=bill&jurisdiction=WA`.

2. **Load the record**  
   Call `get_bill` with `bill_id` or citation from the search hit. Check `citation`, `source_url`, status fields, and sponsors.

3. **Official history (optional)**  
   Call `get_bill_history` for actions, votes, and hearings when listed in `tools/list`. This tool requires Pro or Team.

4. **Follow for updates**  
   Call `follow` with `target_type: "bill"` and the bill id. Requires an API key. The call is idempotent.

5. **Monitor changes**  
   Poll `changes_feed` with `kind: "bill"` and optional `jurisdiction`, or use `list_alerts` for the account feed. Paginate with `cursor` / `next_cursor`.

6. **Report**  
   State current status, last action date, and link `source_url`. Say when history or alerts are unavailable for this plan.

## MCP example (follow)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "follow",
    "arguments": {
      "target_type": "bill",
      "target_id": "00000000-0000-4000-8000-000000000001"
    }
  }
}
```

Send header `X-Api-Key` on the MCP request when the host requires it.

## Webhooks

Team accounts can register HTTPS webhooks for `changes.recorded` instead of polling. See https://trydiurna.com/developers/automation.

## Install this skill

Stable URL: `https://trydiurna.com/skills/track-a-bill/SKILL.md`
