Skip to main content
Let an AI agent (Claude, Cursor, or your own) look up US law mid-conversation, with citations. There are two ways. Connect an MCP-compatible client to the hosted Vaquill MCP server, or wrap the REST API as a tool for your own agent. Both return citations and official source links. Endpoint: POST /us/statutes/search for the custom-tool path. The hosted server needs no REST calls from you.
Using an MCP-compatible client? Connect the hosted Vaquill MCP server and skip this page. It needs no glue code.

Wrap the REST API as your own tool

Define a search_statutes function backed by POST /us/statutes/search and register it as a tool. The agent decides when to call it.
1

Implement the tool function

Use fields to request only what the model needs. Fields you skip are never sent, and the saving grows with limit. actId and citation always come back.
Python
best_source_url() uses the order in Text formats and source URLs.
2

Declare the tool schema

Give the model a schema (a name, a description, and a JSON Schema for parameters) so it knows when and how to call the function.
Python
3

Dispatch the call and keep answers grounded

When the model calls search_statutes, run the function and return the cited results. The wiring depends on your framework.
Python
Tell the model to cite citation and link sourceUrl for every legal claim, and to say so when nothing matches. See Ground an LLM answer (RAG) for the prompt.
For heavy agent traffic, cache the /us/statutes/coverage response and use it to set corpusType and state on tool calls.
Last modified on November 11, 2026