---
name: check-local-ordinance
description: Search Diurna for local ordinances and read meeting context when the user asks about municipal law.
---

# Check a local ordinance

Use this skill for city, county, or other local code questions. Diurna is not legal advice. Every ordinance hit includes `citation` and `source_url` from the official publisher.

## Before you start

1. Read [Diurna agent onboarding](/agent-onboarding/SKILL.md).
2. Connect MCP at `POST https://trydiurna.com/api/mcp`.
3. Confirm `search`, `get_document`, and local meeting tools in `tools/list`.

## Workflow

1. **Pick jurisdiction**  
   Use a locality code when you know it (for example a county code from `list_jurisdictions`). Local coverage varies; say when a place is not in the catalog.

2. **Search ordinances**  
   Call `search` with `type: "ordinance"`, the topic or ordinance number, and `jurisdiction` when known.  
   Alternative: `search_laws` with `doc_type: "ordinance"` for full-text search across loaded ordinances.

3. **Open the ordinance**  
   Call `get_document` with `doc_type: "ordinance"` and `document_id` from the hit, or follow the public web path from the search result.

4. **Meeting context (optional)**  
   When the user asks how a rule was adopted or what council did, call `list_local_meetings` and `get_local_meeting` for agendas, minutes, and roll-call votes. Each row includes `citation` and `source_url`.

5. **Answer**  
   Quote sparingly with citations. Link the official ordinance URL. Note effective dates when the record includes them.

## MCP example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search",
    "arguments": {
      "query": "short-term rental",
      "type": "ordinance",
      "jurisdiction": "WA-KING",
      "limit": 10
    }
  }
}
```

## Coverage

Check https://trydiurna.com/coverage for which local publishers Diurna indexes. Do not invent ordinance text when search returns no hits.

## Install this skill

Stable URL: `https://trydiurna.com/skills/check-local-ordinance/SKILL.md`
