Lawstronaut
v2.0.0Connect AI to millions of laws and court cases with the Lawstronaut MCP.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_jurisdictions
List every country and state in the authenticated subscription's Lawstronaut legal corpus (name, iso, type, documents_count) — not the global unfiltered catalog, and not legal documents or full text. When to use: Call FIRST, before any jurisdiction-scoped legal query, so you know which iso codes are valid for this credential. When not: Skip if you already have this list from earlier in the session. Do not use this to fetch documents, markdown, source files, or portals. Parameters: Takes none — invoke with {}. Do not pass iso, country, limit, offset, or other filters; they are not accepte…
list_domains
Lists the top-level legal domains (id, domain_id, domain name). This is the first taxonomy step. It does not return subdomains, categories, documents, or jurisdictions. When to use: When you need the domain list or a name match. Examples: 'what legal domains exist?', 'find the domain for private law'. Pass domain only to narrow by name. When not: Do not use this for children of a domain. For subdomains use list_subdomains with the returned domain_id. For categories use list_categories. For subcategories use list_subcategories. For law types use list_law_types. For documents use list_documents…
| Parameter | Type | Description |
|---|---|---|
domain | string | Filter by domain name |
limit | number | Number of results to return |
next_id | number | Next ID to paginate the results |
list_subdomains
Lists subdomains under one domain (id, domain_id, subdomain_id, subdomain name). This is the second taxonomy step. When to use: When you already have a domain_id from list_domains. Examples: 'subdomains under domain A', 'international law under Private law'. Pass subdomain only to narrow by name. When not: Do not call without a domain_id from list_domains; use list_domains first. For categories under a subdomain use list_categories with subdomain_id. For subcategories use list_subcategories. For law types use list_law_types. For documents use list_documents or search. Skip if you already have…
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Filter by Domain ID |
limit | number | Number of results to return |
next_id | number | Next ID to paginate the results |
subdomain | string | Filter by subdomain name |
list_categories
Lists categories under one subdomain, with the parent domain and subdomain names. This is the third taxonomy step. When to use: When you already have a subdomain_id from list_subdomains. Examples: 'categories under subdomain A.1', 'find a category named jurisdiction'. Pass category_name only to narrow by name. When not: Do not use this for subcategories; use list_subcategories with the returned category_id. Do not use it for law types; use list_law_types. For the parent lists use list_domains and list_subdomains. For documents use list_documents or search. Do not call without a subdomain_id f…
| Parameter | Type | Description |
|---|---|---|
category_name | string | Filter by category name |
limit | number | Number of results to return |
next_id | number | Next ID to paginate the results |
subdomain_id | string | Filter by Subdomain ID |
list_subcategories
Lists subcategories under one category (id, category_id, category_name, subcategory_id, subcategory_name). This is the fourth taxonomy step. When to use: When you already have a category_id from list_categories. Examples: 'subcategories of category A.1.1', 'find the Jurisdiction subcategory'. Pass subcategory_name only to narrow by name. When not: Do not use this for law types; use list_law_types with the returned subcategory_id. For categories use list_categories. For domains or subdomains use list_domains or list_subdomains. For documents use list_documents or search. Do not call without a…
| Parameter | Type | Description |
|---|---|---|
category_id * | string | Filter by Category ID |
limit | number | Number of results to return |
next_id | number | Next ID to paginate the results |
subcategory_name | string | Filter by subcategory name |
list_law_types
Lists law types under one subcategory, with the parent category and subcategory names. This is the last taxonomy step. It does not return documents. When to use: When you already have a subcategory_id from list_subcategories. Examples: 'law types under subcategory A.1.1.1', 'find law types named statute'. Pass law_type only to narrow by name. When not: Do not use this to list subcategories, categories, domains, or documents. For those use list_subcategories, list_categories, list_domains, list_documents, or search. Do not call without a subcategory_id from list_subcategories. Skip if you alre…
| Parameter | Type | Description |
|---|---|---|
subcategory_id * | string | Filter by Subcategory ID |
law_type | string | Filter by law type name |
limit | number | Number of results to return |
next_id | number | Next ID to paginate the results |
list_portals
Lists the source portals available through this tool, with metadata such as jurisdiction and language. A jurisdiction may have multiple portals, including those maintained by regulators or ministries. When to use: When you need portals, legal websites, or sources for a known iso. Pass optional name, tag, or lang only to narrow that list. When not: Do not use this to read a document. For metadata use list_documents. For plain text use list_full_text. For structured Markdown use list_markdown. For a complete citation bundle use evidence_pull. For a temporary source-file URL use document_presign…
| Parameter | Type | Description |
|---|---|---|
iso * | string | iso (required) is a jurisdiction code from list_jurisdictions (e.g. BE, or US_CA for a state). |
advanced_search | boolean | Advanced search enabled |
lang | string | Exact language name, e.g. English |
limit | number | Number of portals to return |
name | string | Case-insensitive substring of the portal name |
next_id | number | Next portal ID to return |
portal_id | number | Portal ID |
portal_tags | string | Exact portal tag; the portal must include this tag |
list_authority_types
Lists the authority types available through this tool, with metadata such as jurisdiction and portal name. When to use: When you need authority types for a known iso. Pass optional portal name or authority type only to narrow that list. When not: Do not call without an iso from list_jurisdictions. Skip if you already have this authority type list for the same iso and filters. Parameters: iso (required) is a jurisdiction code from list_jurisdictions and is uppercased before the query (e.g. BE, or US_CA for a state). portal_name and authority_type are optional. authority_type must match one au…
| Parameter | Type | Description |
|---|---|---|
iso * | string | Filter by Jurisdiction ISO code (e.g. 'US') |
authority_type | string | Filter by authority type |
limit | number | Number of results to return |
next_id | number | Next portal ID to return |
portal_name | string | Filter by portal name |
list_issuing_authorities
Lists the issuing authorities available through this tool, with metadata such as jurisdiction and issuing authority. When to use: When you need issuing authorities for a known iso. Pass optional portal name or issuing authority only to narrow that list. When not: Do not call without an iso from list_jurisdictions. Skip if you already have this issuing authority list for the same iso and filters. Empty data means the iso is outside the subscription, or no issuing authority matched. Parameters: iso (required) is a jurisdiction code from list_jurisdictions (e.g. BE, or US_CA for a state). porta…
| Parameter | Type | Description |
|---|---|---|
iso * | string | Filter by Jurisdiction ISO code (e.g. 'US') |
issuing_authority | string | Filter by issuing authority |
limit | number | Number of results to return |
next_id | number | Next issuing authority ID to return |
portal_name | string | Filter by portal name |
list_documents
Lists document metadata in a jurisdiction (title, dates, source, classification) with filters and pagination. It does not return the document body, a citation bundle, or a source-file URL. When to use: When you need to find or browse documents before reading them. Example: 'which Belgian employment statutes mention night work?' Use the returned uuid with a body or citation tool. When not: Do not use this for the body or the file. For plain text, use list_full_text (example: 'quote the operative wording'). For structured Markdown, use list_markdown (example: 'keep the article headings'). For a…
| Parameter | Type | Description |
|---|---|---|
iso * | string | Filter by Jurisdiction ISO code (e.g. 'US') |
crawling_date | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
date_of_decision | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
date_of_enactment | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
effective_date | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
expiration_date | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
file_data_only | boolean | (default value is false) returns all documents with file metadata and without file metadata. true returns only the documents with file metadata. |
include_total | boolean | Include total count in response |
is_repealed | boolean | Filter by repealed documents. default value is false |
issuing_authority | string | Filter by issuing authority |
issuing_authority_tags | array | Filter by issuing authority tags |
lang | string | Exact portal language name, for example English. Filters the portal, not the document language. |
last_amendment | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
last_updated | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
limit | integer | Page size. Default 20, maximum 100. |
next_id | number | document id of the first row of the next page, from pagination.next_id. Omit on the first page. |
portal | string | Filter by portal name |
portal_id | number | Filter by portal ID |
publication_date | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
section_title | string | Filter by section title |
source_identifier | string | Filter by source identifier |
source_secondary_identifier | string | Filter by secondary source identifier |
status | string | Filter by document status |
tag | string | Filter by portal tag |
title | string | Filter by title |
type_of_authority | string | Filter by type of authority |
url | string | Filter by document URL |
uuid | string | Filter by UUID. Leave blank to apply no UUID filter. |
version | string | Filter by version |
list_full_text
Returns the plain-text body of documents (id, uuid, version, text). This is the plain-text read: wording only, with no Markdown headings or lists, and no citation metadata. When to use: When you need the body as plain text. Examples: 'quote the operative wording of this Belgian statute', 'give me the raw text of uuid …'. Pass uuid when you already have one document; otherwise filter by title and paginate. When not: For structured Markdown that keeps headings and lists, use list_markdown. For a complete citation bundle in one call — metadata, permanent legal link, citation template, body,…
| Parameter | Type | Description |
|---|---|---|
iso * | string | Filter by Jurisdiction ISO code (e.g. 'US') |
crawling_date | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
date_of_enactment | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
effective_date | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
expiration_date | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
include_total | boolean | Include total count in response |
is_repealed | boolean | Filter by repealed documents. default value is false |
lang | string | Exact portal language name, for example English. Filters the portal, not the document language. |
last_amendment | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
last_updated | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
limit | integer | Page size. Default 20, maximum 100. |
next_id | number | document id of the first row of the next page, from pagination.next_id. Omit on the first page. |
portal | string | Filter by portal name |
portal_id | number | Filter by portal ID |
publication_date | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
status | string | Filter by document status |
title | string | Filter by title |
url | string | Filter by document URL |
uuid | string | Filter by UUID. Leave blank to apply no UUID filter. |
with_empty_data | boolean | Return empty data if no full text is found |
list_markdown
Returns the structured Markdown body of documents (id, uuid, version, markdown). Headings and lists stay intact. This is not plain text, not a citation bundle, and not a file URL. When to use: When you need the body as structured Markdown. Examples: 'show this regulation with its article headings', 'give me Markdown I can render for uuid …'. Pass uuid when you already have one document; otherwise filter by title and paginate. When not: For plain text with no Markdown structure, use list_full_text (example: 'quote the operative wording'). For a complete citation bundle in one call — metada…
| Parameter | Type | Description |
|---|---|---|
iso * | string | Filter by Jurisdiction ISO code (e.g. 'US') |
crawling_date | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
date_of_enactment | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
effective_date | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
expiration_date | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
include_total | boolean | Include total count in response |
is_repealed | boolean | Filter by repealed documents. default value is false |
lang | string | Exact portal language name, for example English. Filters the portal, not the document language. |
last_amendment | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
last_updated | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
limit | integer | Page size. Default 20, maximum 100. |
next_id | number | document id of the first row of the next page, from pagination.next_id. Omit on the first page. |
portal | string | Filter by portal name |
portal_id | number | Filter by portal ID |
publication_date | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
status | string | Filter by document status |
title | string | Filter by title |
url | string | Filter by document URL |
uuid | string | Filter by UUID. Leave blank to apply no UUID filter. |
with_empty_data | boolean | Return empty data if no markdown is found |
document_presigned_url
Returns a temporary signed URL to the original source file (PDF or other stored file) for one document. The URL expires. This tool does not return the document body or a citation bundle. When to use: When you need to open or download the original file. Examples: 'give me the PDF for uuid …', 'link to the source file so I can download it'. Use the uuid from list_documents, search, or horizon_scan. When not: For plain text of the body, use list_full_text (example: 'quote the operative wording'). For structured Markdown, use list_markdown (example: 'keep the article headings'). For a complete…
| Parameter | Type | Description |
|---|---|---|
uuid * | string | UUID |
document_version
Retrieves a specific document with a specific version When to use: The user wants to find a specific document with a specific version When not: The user wants to find a specific document with a specific version but the document is not found Parameters: uuid (required) is the UUID of the document, version (required) is the version of the document Behavior: Read-only SELECT; does not create, update, or delete records, files, or credentials. The only effect is a database read. Auth: tools/call requires OAuth 2.0 or a Bearer token (401 if missing, invalid, revoked, or no active subscription). R…
| Parameter | Type | Description |
|---|---|---|
uuid * | string | UUID |
version * | integer | Version |
horizon_scan
Scans recent legal documents across jurisdictions. When to use: When you need to find legal content for a specific jurisdiction and optional filters. When not: Do not use this to read a document body or download a file. For plain text use list_full_text. For structured Markdown use list_markdown. For a complete citation bundle use evidence_pull. For a temporary source-file URL use document_presigned_url. Do not call without an iso from list_jurisdictions. Skip if you already have this scan for the same iso and filters. Parameters: iso (required) is a jurisdiction code from list_jurisdictions…
| Parameter | Type | Description |
|---|---|---|
iso * | string | One ISO code e.g. "IE", "NL", "US", etc. |
date_field | string | Which date to window on. "crawling_date" (default) = when Lawstronaut crawled it. "publication_date" = when officially published. "last_updated" = when corpus record last changed. |
include_repealed | boolean | If false, drop documents where repealed=true |
issuing_authority | string | null | Optional filter on issuing authority |
max_per_jurisdiction | integer | Max docs to return per jurisdiction (1-100) |
since | string | Freshness window. "yesterday", "today", "Nd"/"Nh"/"Nw" (e.g. "7d"), or ISO date "YYYY-MM-DD" |
status | string | null | Optional filter on status field e.g. "new", "updated" String. |
topic | string | null | Optional filter (matches title) e.g. "employee monitoring" or "workplace surveillance" |
type_of_authority | string | null | Optional filter on type of authority |
evidence_pull
Returns one complete citation bundle for a single document: metadata, a permanent legal_link, a citation_template, the body, and a temporary source-file URL when one exists. When to use: When one call must support a citation or an audit. Examples: 'show me the source for this Irish statute', 'cite uuid … with its authority, date, link, and text'. Prefer this over calling the body and file tools separately. When not: For plain text alone, use list_full_text (example: 'quote the operative wording'). For structured Markdown alone, use list_markdown (example: 'keep the article headings'). For o…
| Parameter | Type | Description |
|---|---|---|
iso * | string | Document's jurisdiction ISO code, e.g. 'IE', 'NL', 'US', etc. |
uuid * | string | Document's UUID |
include_source_url | boolean | Fetch a temporary signed URL to the original file (PDF etc.) where available (default True). |
include_text | boolean | Fetch the full body (default True) |
text_format | string | 'markdown' (preserves structure) or 'plain'. |
search
Searches legal documents using OpenSearch to discover relevant documents based on the supplied search criteria. Returns matching documents and their available metadata. When to use: Use when you need to discover relevant legal documents through search, especially when looking for documents matching a search query rather than retrieving a structured list. Use this to explore legal content relevant to a topic, legal issue, phrase, or other supported search criteria. When not: Do not use this to browse with structured filters and cursor pagination; use list_documents. Do not use it to read a bod…
| Parameter | Type | Description |
|---|---|---|
iso * | string | Filter by Jurisdiction ISO code (e.g. 'US') |
crawling_date | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
date_of_decision | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
date_of_enactment | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
effective_date | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
expiration_date | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
file_data_only | boolean | Filter by file data only |
include_total | boolean | Include total count in response |
is_repealed | boolean | Filter by repealed documents. default value is false |
issuing_authority | string | Filter by issuing authority |
issuing_authority_tags | array | Filter by issuing authority tags |
keyword | string | Search text matched against the heading and the body. Example: '29 CFR 825.500 retention period'. Omit it to list by filters only, newest document id first. |
lang | string | Exact portal language name, for example English. Filters the portal, not the document language. |
last_amendment | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
last_updated | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
limit | integer | Page size. Default 20, maximum 100. |
next_id | number | document id of the first row of the next page, from pagination.next_id. Omit on the first page. |
portal | string | Filter by portal name |
portal_id | number | Filter by portal ID |
publication_date | string | YYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter. |
source_identifier | string | Filter by source identifier |
source_secondary_identifier | string | Filter by secondary source identifier |
status | string | Filter by document status |
tag | string | Filter by tag |
type_of_authority | string | Filter by type of authority |
url | string | Filter by document URL |
uuid | string | Filter by UUID. Leave blank to apply no UUID filter. |
version | string | Filter by version |
health_check
Verify that the Lawstronaut MCP server and its backing services (database, cache) are reachable and responding. Returns the overall status, per-service status, server version, and a UTC timestamp. When to use: Call at the start of a session to confirm connectivity before running any data tools, or when a previous tool call returned an unexpected error and you want to diagnose whether the service itself is down. When not: Do not call on every tool invocation — use it only for diagnostic purposes. It does not return legal data. Parameters: Takes none — invoke with {}. No filters, paginatio…