---
name: research-a-statute
description: Search Diurna for a statute section, read the official text, and return citation and source_url for every quote.
---

# Research a statute

Use this skill when a user asks what the law says on a topic or for the text of a code section. Diurna is not legal advice. Quote the official publisher linked on each record.

## Before you start

1. Read [Diurna agent onboarding](/agent-onboarding/SKILL.md) for MCP and API access.
2. Connect MCP at `POST https://trydiurna.com/api/mcp` or use public REST search without a key.
3. Call `tools/list` and confirm `search`, `get_statute`, and `list_jurisdictions` are available.

## Workflow

1. **Scope jurisdiction**  
   If the user named a state or locality, pass it as `jurisdiction` (for example `WA`, `US`). Otherwise call `list_jurisdictions` and pick the best match, or search broadly and filter hits.

2. **Search**  
   Call MCP `search` with `type: "statute"`, the user query, and optional `jurisdiction`.  
   REST equivalent: `GET /api/v1/search?q=...&type=statute&jurisdiction=WA`.

3. **Open one section**  
   From the top hit, call `get_statute` with `citation` and `jurisdiction`, or with `id` from the search result.  
   Every response includes `citation` and `source_url`. Do not paraphrase without those fields.

4. **History or comparison (optional)**  
   Use `get_version` or `get_redline` when the user asks how text changed. Redlines may require a paid plan; if the tool is missing from `tools/list`, say that comparison is not enabled for this credential.

5. **Answer**  
   Summarize in plain language, then give short quotes with inline citations. Link `source_url` for each quote. Say when coverage ends or the section is missing.

## MCP example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search",
    "arguments": {
      "query": "landlord habitability",
      "type": "statute",
      "jurisdiction": "WA",
      "limit": 5
    }
  }
}
```

Then:

```json
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "get_statute",
    "arguments": {
      "citation": "RCW 59.18.060",
      "jurisdiction": "WA"
    }
  }
}
```

## Errors

- Empty search: broaden the query or drop `jurisdiction`.
- Ambiguous citation: disambiguate with jurisdiction or use `id` from search.
- HTTP 429: wait for `Retry-After` before retrying.

## Install this skill

Stable URL: `https://trydiurna.com/skills/research-a-statute/SKILL.md`  
Copy into `.cursor/skills/research-a-statute/SKILL.md`, `.codex/skills/`, or your assistant skills folder.
