Skip to content
LexBuild
On this page

Tools

The LexBuild MCP server exposes five read-only tools. All tools are idempotent and make no changes to the underlying data.

search_laws

Full-text search across the U.S. Code, Code of Federal Regulations, and Federal Register. Returns ranked results with snippets and canonical identifiers.

Parameters

ParameterTypeRequiredDefaultDescription
querystringYesNatural language or keyword query (2—256 characters). Supports quoted phrases.
source"usc" | "cfr" | "fr"NoAll sourcesRestrict search to a specific source
titleintegerNoRestrict to a specific title number. Only meaningful with a single source.
limitintegerNo10Maximum results (1—25)
offsetintegerNo0Pagination offset

Example

“Search for securities fraud in the CFR”

The assistant calls search_laws with query: "securities fraud" and source: "cfr", returning results like 17 CFR 240.10b-5.

Response

Returns an array of hits with identifier, source, heading, snippet, hierarchy, and url. Includes total, has_more, and pagination fields.


get_section

Fetch the full text of a single legal section by its canonical identifier. Returns Markdown with structured metadata.

Parameters

ParameterTypeRequiredDescription
source"usc" | "cfr" | "fr"YesLegal source type
identifierstringYesSection identifier (see examples below)

Identifier formats:

SourceFormatExample
USC/us/usc/t{title}/s{section}/us/usc/t5/s552
CFR/us/cfr/t{title}/s{section}/us/cfr/t17/s240.10b-5
FRDocument number2026-06029

Short forms like t5/s552 are also accepted for USC and CFR sources.

Example

“Show me the full text of 5 USC 552”

The assistant calls get_section with source: "usc" and identifier: "/us/usc/t5/s552".

Response

Returns identifier, source, metadata (title, section name, chapter, legal status), body (full Markdown text), and url (link to lexbuild.dev).


list_titles

Enumerate available titles for USC or CFR, or available years for the Federal Register. Use this to discover what content is available before drilling in.

Parameters

ParameterTypeRequiredDescription
source"usc" | "cfr" | "fr"YesFor usc/cfr, returns titles. For fr, returns years.

Example

“What titles are in the U.S. Code?”

The assistant calls list_titles with source: "usc", returning all 54 titles with names and document counts.

Response

For USC/CFR: array of { title_number, title_name, document_count, chapter_count }.

For FR: array of { year, document_count }.


get_title

Get detail for a specific title (USC/CFR) or year (FR). Returns chapter breakdowns for titles or monthly breakdowns for years.

Parameters

ParameterTypeRequiredDescription
source"usc" | "cfr" | "fr"YesLegal source type
numberintegerYesTitle number (USC/CFR) or year (FR). Examples: 5 for USC Title 5, 2026 for FR year 2026.

Example

“Show me the chapters in USC Title 18”

The assistant calls get_title with source: "usc" and number: 18, returning all chapters in the federal criminal code with section counts.

Response

For USC/CFR: title_number, title_name, document_count, and chapters[] array with chapter_number, chapter_name, document_count.

For FR: year, document_count, and months[] array with month, document_count.


get_federal_register_document

Fetch a Federal Register document by its document number. This is a convenience tool for FR documents, equivalent to calling get_section with source: "fr".

Parameters

ParameterTypeRequiredDescription
document_numberstringYesFederal Register document number (e.g., 2026-06029)

Example

“Get Federal Register document 2026-06029”

The assistant calls get_federal_register_document with document_number: "2026-06029".

Response

Returns identifier, source, metadata (publication date, agencies, document type, CFR references), body (full Markdown), and url.