---
title: "AI Legal Research Tool: Statutes With Citations"
description: "A legal research tool for your AI agent: retrieve the statute with its citation and check the number you asked about is in the text. One real run for $0.9100."
canonical: "https://dev.monid.ai/tutorial/how-to-monid-legal-research"
---

# What does the statute actually say?

> A legal research tool for your AI agent: retrieve the statute with its citation and check the number you asked about is in the text. One real run for $0.9100.

- Web page: https://dev.monid.ai/tutorial/how-to-monid-legal-research
- Tools for this job: [Legal Research](https://dev.monid.ai/tools/legal-research.md)

## Set up

Paste this to your agent once. It installs the Monid skill and asks for an API key from app.monid.ai.

```text
set up https://monid.ai/SKILL.md
```

## Jobs

Each job is a sentence to paste into your agent. Replace the parts in angle brackets.

### 1. Find the statute that governs it

Ask your agent:

```text
find the statute that governs <question> in <state> with vaquill on monid, asking for the largest excerpt the endpoint allows, which is free. the DEFAULT excerpt is short enough to cut the number out of the answer, so before you quote anything, check the text you have actually contains the figure i asked about. give me the section number, the citation and the official link, quote the text rather than summarising it, and do not tell me what it means for anyone
```

Listed price: $0.04 text, citation and a link.

Endpoints for this job:

- [`vaquill /us/statutes/search`](https://dev.monid.ai/tools/vaquill.md), $0.04 to $0.06 (the one this guide ran)
- [`vaquill /us/statutes/section/{act_id}/body`](https://dev.monid.ai/tools/vaquill.md), $0.06 (the one this guide ran)
- [`vaquill /us/statutes/coverage`](https://dev.monid.ai/tools/vaquill.md), $0.00 (the one this guide ran)
- [`vaquill /us/statutes/sections`](https://dev.monid.ai/tools/vaquill.md), $0.02 to $0.06 (the one this guide ran)

What a real run returned:

- **the default excerpt cuts the answer out**: on a second question in two states, the top hit's default excerpt contained no period at all: no six years in one state's section and no four years in the other's. An agent told to quote the text rather than summarise it then quotes a statute of limitations with no limitation in it, at full confidence, with a correct citation and a working government link attached
- **the fix is free and this page missed it**: the excerpt length is a parameter, it costs nothing, and its ceiling is four thousand characters. At that ceiling the excerpt was byte-identical to the plain text the body endpoint returns, proved by string equality, so for any section under the cap the paid body call buys nothing
- **it is the real language either way**: what comes back is the statute rather than a paraphrase of it; the question is only whether you were given all of it
- **and it is citable**: every result carries its citation and an external url pointing at the state legislature's own site, which returned HTTP 200 when we fetched it
- **the coverage is free to check**: about 5.1 million sections and 19.5 million passages across 53 jurisdictions, all flagged as having data, for $0.0000 before you spend anything. Those totals are live counters carrying their own measured-at stamp, so they move between runs
- **watch the default limit**: turning on inline bodies bills $0.06 per result on top of the $0.04, confirmed exactly at two limits, so the default limit of ten turns one search into $0.64
- **and the catalog understates it tenfold**: that tier is listed as a flat $0.06 per call. It is $0.06 per RESULT, so at the default limit the listing is out by a factor of ten

### 2. The same question in twenty-five states

Ask your agent:

```text
run <question> across the states with vaquill on monid, setting the limit to 25 explicitly: the default is 5 and the call costs the same either way, so leaving it unset throws away four fifths of what you paid for. then read the citations before you trust the set: these are the seed section's nearest neighbours by text similarity, not twenty-five answers to your question, and tell me which states are missing
```

Listed price: $0.06 25 states, one call.

Endpoints for this job:

- [`vaquill /us/statutes/section/{act_id}/cross-state`](https://dev.monid.ai/tools/vaquill.md), $0.06 (the one this guide ran)
- [`vaquill /us/statutes/resolve`](https://dev.monid.ai/tools/vaquill.md), $0.02 / result (the one this guide ran)
- [`vaquill /us/statutes/search`](https://dev.monid.ai/tools/vaquill.md), $0.04 to $0.06 (the one this guide ran)

What a real run returned:

- **the number that sells it, if you ask for it**: $0.06 for twenty-five states in a single call. The default limit is five, and five costs the same $0.06, so the sentence has to name the limit or you pay full price for a fifth of the answer
- **they are neighbours, not answers**: the set is ranked by similarity to the SEED section's text, so a seed whose title mentions one instrument pulls back that instrument's provisions from other states. On a second question the top similarity was 0.48 and most of the twenty-five were about something adjacent. The endpoint's own summary calls it a shortlist
- **the cap is hard**: twenty-five with no cursor and no offset, both refused before a run exists, so it costs nothing to find out
- **and they are not missing data**: one of the four resolved directly to its own section, so the state is covered; it simply lost the similarity ranking
- **so fifty states is not one call**: the cheapest complete route we could construct is $1.14, and that figure is extrapolated rather than run

### 3. Verify a citation someone gave you

Ask your agent:

```text
resolve <citation> with vaquill on monid and give me the text it actually points at. if it does not resolve, say so plainly rather than describing what a section with that number would probably say
```

Listed price: $0.02 per citation that resolves.

Endpoints for this job:

- [`vaquill /us/statutes/resolve`](https://dev.monid.ai/tools/vaquill.md), $0.02 / result (the one this guide ran)
- [`vaquill /us/statutes/sections`](https://dev.monid.ai/tools/vaquill.md), $0.02 to $0.06 (the one this guide ran)
- [`vaquill /us/statutes/section/{act_id}/body`](https://dev.monid.ai/tools/vaquill.md), $0.06 (the one this guide ran)

What a real run returned:

- **what it does**: takes a citation and returns the section it points at, with the text, for two cents when it lands
- **and when it does not**: an invented section number and an invented case citation both came back as not resolved, rather than as a plausible fabrication, and both billed $0.0000
- **you pay per hit**: five citations in, three resolved, three charged; the same is true of the sections endpoint, which found three of four ids and billed for three
- **the listed price is per item**: that endpoint is catalogued as tiered and bills per section actually returned, so batching saves round trips rather than money

### 4. The lookup this page will not teach you

Ask your agent:

```text
do not ask for a STATE statute as it stood on a past date: the as-of parameter goes in the query while the act id goes in the path, it is accepted, today's text comes back, nothing machine-readable marks it, and it bills. if you need historical state law, go to the state's own archive. federal law is different and does carry stored editions
```

Listed price: $0.00 the job is not to do it.

Endpoints for this job:

- [`vaquill /us/statutes/search`](https://dev.monid.ai/tools/vaquill.md), $0.04 to $0.06 (the one this guide ran)
- [`vaquill /us/statutes/section/{act_id}/changes`](https://dev.monid.ai/tools/vaquill.md), $0.01 (the one this guide ran)
- [`vaquill /us/statutes/section/{act_id}/body`](https://dev.monid.ai/tools/vaquill.md), $0.06 (the one this guide ran)

What a real run returned:

- **what happens**: the response reports the section existed, sets its note and out-of-coverage reason to null, and returns a body byte-identical to today's including the current figure, while the provider's own metadata says the section took effect after the date asked for
- **reproduced twice more**: on two further states and years, with the current figure identical under strict equality both times, one of them including a subdivision added after the date requested
- **there IS a warning, and that is worse**: an engine field and a prose coverage note do appear. Neither is machine-readable, so a program cannot branch on them while a human skimming the response sees something that looks like due diligence
- **the only tell contradicts itself**: a nested field says the source was live while the top-level source field on the same response says it came from change history
- **and the change log is thin**: asking that endpoint for a section amended in 2023 returned nothing, correctly billing $0.0000, so it cannot be used as a cross-check either
- **state law only**: the coverage endpoint documents annual stored editions for federal code and regulations, with a real edition path, so this warning is about state statutes and should not be read as covering everything here

### 5. Relevance is not confidence

Ask your agent:

```text
never filter these results on the relevance score. read the citation on each passage and check the text belongs to it: the score tells you how close the language is, not whether the source is the kind of law that answers your question
```

Listed price: $0.04 the cost of finding out.

Endpoints for this job:

- [`vaquill /us/statutes/search`](https://dev.monid.ai/tools/vaquill.md), $0.04 to $0.06 (the one this guide ran)
- [`vaquill /us/statutes/resolve`](https://dev.monid.ai/tools/vaquill.md), $0.02 / result (the one this guide ran)
- [`vaquill /us/statutes/section/{act_id}/cited-by`](https://dev.monid.ai/tools/vaquill.md), $0.02 (the one this guide ran)

What a real run returned:

- **what went wrong once**: a case-law question returned five state attorney-general opinions, and one excerpt was the Supreme Court's own language sitting under an attorney-general citation, scoring 0.855 against 0.805 for a question the aisle answers correctly
- **and did not go wrong the second time**: a different case-law question returned five correctly attributed statutes at a top score of 0.516, below the correct statute searches at 0.746 and 0.82, so a threshold would have worked there. The inversion is a hazard rather than a rule
- **which is why the instruction is about the citation**: a score that ranks correctly on one question and inverts on another is not something to tune a cut-off against; reading what the passage is and who issued it works on both
- **what to check instead**: that the passage's language belongs to the citation attached to it, which is a read of the text rather than a read of a number
- **the aisle is statutes**: reverse citation lookup exists for federal sections and not for state law, so treat case law as outside what this covers

### 6. The excerpt is not the section

Ask your agent:

```text
ask for the largest excerpt first, which is free and caps at four thousand characters: under that cap it is byte-identical to the paid body. only pay for the body when the section is longer than the cap. either way the truncation is silent, there is no flag anywhere in the object, and the word count still reports the whole section next to the shortened text
```

Listed price: $0.06 the full text of one section.

Endpoints for this job:

- [`vaquill /us/statutes/section/{act_id}/body`](https://dev.monid.ai/tools/vaquill.md), $0.06 (the one this guide ran)
- [`vaquill /us/statutes/search`](https://dev.monid.ai/tools/vaquill.md), $0.04 to $0.06 (the one this guide ran)
- [`vaquill /us/statutes/sections`](https://dev.monid.ai/tools/vaquill.md), $0.02 to $0.06 (the one this guide ran)

What a real run returned:

- **what is missing**: 211 characters on this section, and 274 and 782 on two others, so the shortfall is whatever the section's length happens to make it
- **and it does not always end tidily**: the neat ending on a full stop is one of three behaviours seen: two results began MID-SENTENCE with no marker at either end, which is harder to notice than a clean truncation
- **no flag, in any of them**: nothing anywhere in the object says the text was cut
- **and the count still says full**: the word count field reported the whole section's count next to the shortened text
- **two endpoints, two windows**: the same section came back with different truncation from the search and the sections routes, one of them starting part way through a subdivision
- **so quote from something whole**: for a section under four thousand characters that is the free excerpt at its ceiling; above it, six cents is the price of quoting something you can stand behind. An earlier version of this page taught the paid route for both

## More

- [Every how-to guide](https://dev.monid.ai/tutorial.md)
- [Connect an agent to Monid](https://dev.monid.ai/index.md)
