Developers
Starter prompt library
Copy-ready prompts for legal research with Diurna. Use them in ChatGPT, Claude, Cursor, or any agent with Diurna MCP or the REST API. Each prompt asks for official citations and source URLs from Diurna, not from memory.
Diurna is a research index, not legal advice. Confirm coverage at /coverage before relying on a jurisdiction. tools/list on your MCP host is authoritative for tool availability.
Search and read official text
Find a statute or regulation, then pull the stored section text with citation and source_url.
Using Diurna, search Washington statutes for a residential landlord's repair and habitability duties. Open the best matching section with get_section (MCP) or GET /api/v1/sections/{id} (API). Reply with the citation, a short summary in plain language, the official source URL, and one quoted sentence from the stored text.Call Diurna MCP search with query "data breach notification" and jurisdiction US. Return the top three hits with citation, title, section id, and source_url. Then call get_section on the best match and include the first 400 characters of stored text.Search Diurna for "noncompete employee" in the state I name next. Pick the two most on-point sections, fetch each full text, and compare them in a short table: citation, who it binds, and key operative language. Every row must include the Diurna source URL for each section.After a Diurna search on "zoning variances", take the first five section ids. Use get_many to fetch them in one call. Produce an outline with citation, title, and one-sentence summary per section, each linked to source_url.Use Diurna MCP search_laws for query "minimum wage" with limit 10. List results as numbered citations with jurisdiction and source_url. Do not answer from training data; only use tool output.
Citations and lookup
Resolve a string citation to stored law, or build a citation checklist for a memo.
I will paste a statute citation. Use Diurna lookup_citation (MCP) or GET /api/v1/lookup (API) to resolve it. If found, fetch the section and return citation, title, source_url, and whether the text matches the official publisher snapshot. If not found, say so and suggest a Diurna search query instead.I will list citations I plan to cite in a brief. For each one, use Diurna to confirm it exists, return source_url, and flag any citation that does not resolve. Output a three-column table: citation, status (found or not found), official link.Given a Diurna document id from a prior search result, call get_document. Return doc_type, citation, jurisdiction, source_url, and a link path I can open on trydiurna.com.After locating a statute section in Diurna, call get_evidence_packet for that section id. Summarize what provenance fields are present (source URL, retrieved timing if shown, version labels). Do not invent fields that are not in the tool response.
Bills and amendments
Track session law, bill metadata, and which code sections a bill touches.
Using Diurna, find the current session bill I name (state, session, bill number). Call get_bill and summarize status, title, last action, and source_url. If the bill is not in coverage, say so and point me to /coverage.For bill id {paste Diurna bill uuid}, call list_bill_amendments. Return a table of affected citations with source_url per row. Note if redline text requires a plan that includes redlines before attempting a diff.Search Diurna for bills about "clean energy standard" in the state I specify. Open the single most relevant bill and explain in plain language what it would change. Include the official bill source URL from Diurna.Find two active bills on the same policy topic in one state using Diurna search. Compare sponsors, status, and cited code sections using get_bill on each. End with a short neutral summary and links to both official sources.
Changes, follows, and alerts
Monitor the change feed, follow a place or document, and review alert configuration.
Use Diurna list_changes or GET /api/v1/changes for the jurisdiction I name, newest first. Summarize the five most recent recorded changes with citation, change type, and link to each change page on Diurna.After I confirm the statute section id, call Diurna follow with target_type statute and that id. Then call list_alerts and confirm the follow appears. Explain how I can manage alerts in Diurna Tracking in the product UI.Call changes_feed with a jurisdiction code and document_class statute. Return next cursor if present and stop after one page unless I ask for more. Format as bullet list with citation and recorded_at from the tool payload only.List my Diurna follows, identify the one matching the citation I provide, and call unfollow on its target. Confirm with list_alerts that it is gone.
Coverage and official sources
Check what Diurna indexes before research, and inspect publisher health signals.
Call Diurna get_coverage for the state code I provide. Summarize which document classes are available and any date bounds shown in the response. If something is missing, tell me to verify on /coverage and /about/sources.Call list_jurisdictions on Diurna MCP. Help me choose the correct jurisdiction code for a county I name, or say if it is not listed.Call list_source_registry on Diurna. Filter mentally to the jurisdiction I care about and summarize source name, scope, and any health fields returned. Do not claim a source is healthy unless the tool output says so.
Legislature and local meetings
Directory tools need a Team plan API key. Local meetings are public reads with citations.
With Diurna Team access, use list_committees then get_committee for the committee I name. List current members with party and district if present in the tool output, each with source_url. If tools are unavailable, tell me to confirm plan access and tools/list.Use Diurna get_member for the member id or search flow I provide. Return name, chamber, district, leadership roles if shown, and official source_url.Use list_local_meetings for the place and date range I specify, then get_local_meeting for one meeting. Summarize agenda items and link each item's citation and source_url from Diurna.Open one local meeting in Diurna and extract roll-call votes mentioned in the stored record. Present a table: motion, result, vote count if available, source_url.
Regulations and CFR
Read federal regulations stored in Diurna with the same citation discipline as statutes.
Call list_cfr_parts for CFR title 40 (or the title I specify next). Return part numbers and names from the tool response with links where provided.Use get_cfr_section for the CFR citation I provide. Return the stored text excerpt, citation, and source_url. Note if the section is missing from Diurna coverage.Search Diurna for federal regulations on "wetlands permitting". Pick the best section, fetch full text, and explain the compliance hook in plain language with official link.
Automation and REST-only agents
Webhooks and direct HTTP for pipelines that do not use MCP.
With a Team API key, call create_webhook_endpoint for url https://example.com/hooks/diurna (replace with my URL when I provide it). Then list_webhook_endpoints and show the id and subscribed events from the response. Remind me to verify signatures per /developers/automation.Show a curl example for GET /api/v1/search on this host with query and jurisdiction parameters only. Then describe how to parse the JSON ids field to call GET /api/v1/sections/{id} next. Do not print my API key; use $DIURNA_API_KEY.Fetch GET /api/v1/openapi.json from this Diurna host. List every path tagged for changes and follows with method names only. Point me to /developers for human-readable limits and auth rows.