Lawstronaut

v2.0.0
com.lawstronaut/lawstronaut-mcp Checked 2 days ago Published 24 days ago

Connect 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…

ParameterTypeDescription
domainstringFilter by domain name
limitnumberNumber of results to return
next_idnumberNext 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…

ParameterTypeDescription
domain_id *stringFilter by Domain ID
limitnumberNumber of results to return
next_idnumberNext ID to paginate the results
subdomainstringFilter 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…

ParameterTypeDescription
category_namestringFilter by category name
limitnumberNumber of results to return
next_idnumberNext ID to paginate the results
subdomain_idstringFilter 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…

ParameterTypeDescription
category_id *stringFilter by Category ID
limitnumberNumber of results to return
next_idnumberNext ID to paginate the results
subcategory_namestringFilter 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…

ParameterTypeDescription
subcategory_id *stringFilter by Subcategory ID
law_typestringFilter by law type name
limitnumberNumber of results to return
next_idnumberNext 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…

ParameterTypeDescription
iso *stringiso (required) is a jurisdiction code from list_jurisdictions (e.g. BE, or US_CA for a state).
advanced_searchbooleanAdvanced search enabled
langstringExact language name, e.g. English
limitnumberNumber of portals to return
namestringCase-insensitive substring of the portal name
next_idnumberNext portal ID to return
portal_idnumberPortal ID
portal_tagsstringExact 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…

ParameterTypeDescription
iso *stringFilter by Jurisdiction ISO code (e.g. 'US')
authority_typestringFilter by authority type
limitnumberNumber of results to return
next_idnumberNext portal ID to return
portal_namestringFilter 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…

ParameterTypeDescription
iso *stringFilter by Jurisdiction ISO code (e.g. 'US')
issuing_authoritystringFilter by issuing authority
limitnumberNumber of results to return
next_idnumberNext issuing authority ID to return
portal_namestringFilter 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…

ParameterTypeDescription
iso *stringFilter by Jurisdiction ISO code (e.g. 'US')
crawling_datestringYYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter.
date_of_decisionstringYYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter.
date_of_enactmentstringYYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter.
effective_datestringYYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter.
expiration_datestringYYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter.
file_data_onlyboolean(default value is false) returns all documents with file metadata and without file metadata. true returns only the documents with file metadata.
include_totalbooleanInclude total count in response
is_repealedbooleanFilter by repealed documents. default value is false
issuing_authoritystringFilter by issuing authority
issuing_authority_tagsarrayFilter by issuing authority tags
langstringExact portal language name, for example English. Filters the portal, not the document language.
last_amendmentstringYYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter.
last_updatedstringYYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter.
limitintegerPage size. Default 20, maximum 100.
next_idnumberdocument id of the first row of the next page, from pagination.next_id. Omit on the first page.
portalstringFilter by portal name
portal_idnumberFilter by portal ID
publication_datestringYYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter.
section_titlestringFilter by section title
source_identifierstringFilter by source identifier
source_secondary_identifierstringFilter by secondary source identifier
statusstringFilter by document status
tagstringFilter by portal tag
titlestringFilter by title
type_of_authoritystringFilter by type of authority
urlstringFilter by document URL
uuidstringFilter by UUID. Leave blank to apply no UUID filter.
versionstringFilter 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,…

ParameterTypeDescription
iso *stringFilter by Jurisdiction ISO code (e.g. 'US')
crawling_datestringYYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter.
date_of_enactmentstringYYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter.
effective_datestringYYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter.
expiration_datestringYYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter.
include_totalbooleanInclude total count in response
is_repealedbooleanFilter by repealed documents. default value is false
langstringExact portal language name, for example English. Filters the portal, not the document language.
last_amendmentstringYYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter.
last_updatedstringYYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter.
limitintegerPage size. Default 20, maximum 100.
next_idnumberdocument id of the first row of the next page, from pagination.next_id. Omit on the first page.
portalstringFilter by portal name
portal_idnumberFilter by portal ID
publication_datestringYYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter.
statusstringFilter by document status
titlestringFilter by title
urlstringFilter by document URL
uuidstringFilter by UUID. Leave blank to apply no UUID filter.
with_empty_databooleanReturn 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…

ParameterTypeDescription
iso *stringFilter by Jurisdiction ISO code (e.g. 'US')
crawling_datestringYYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter.
date_of_enactmentstringYYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter.
effective_datestringYYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter.
expiration_datestringYYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter.
include_totalbooleanInclude total count in response
is_repealedbooleanFilter by repealed documents. default value is false
langstringExact portal language name, for example English. Filters the portal, not the document language.
last_amendmentstringYYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter.
last_updatedstringYYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter.
limitintegerPage size. Default 20, maximum 100.
next_idnumberdocument id of the first row of the next page, from pagination.next_id. Omit on the first page.
portalstringFilter by portal name
portal_idnumberFilter by portal ID
publication_datestringYYYY-MM-DD, or a range YYYY-MM-DD-to-YYYY-MM-DD. Leave blank to apply no date filter.
statusstringFilter by document status
titlestringFilter by title
urlstringFilter by document URL
uuidstringFilter by UUID. Leave blank to apply no UUID filter.
with_empty_databooleanReturn 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…

ParameterTypeDescription
uuid *stringUUID

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…

ParameterTypeDescription
uuid *stringUUID
version *integerVersion

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…

ParameterTypeDescription
iso *stringOne ISO code e.g. "IE", "NL", "US", etc.
date_fieldstringWhich date to window on. "crawling_date" (default) = when Lawstronaut crawled it. "publication_date" = when officially published. "last_updated" = when corpus record last changed.
include_repealedbooleanIf false, drop documents where repealed=true
issuing_authoritystring | nullOptional filter on issuing authority
max_per_jurisdictionintegerMax docs to return per jurisdiction (1-100)
sincestringFreshness window. "yesterday", "today", "Nd"/"Nh"/"Nw" (e.g. "7d"), or ISO date "YYYY-MM-DD"
statusstring | nullOptional filter on status field e.g. "new", "updated" String.
topicstring | nullOptional filter (matches title) e.g. "employee monitoring" or "workplace surveillance"
type_of_authoritystring | nullOptional 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…

ParameterTypeDescription
iso *stringDocument's jurisdiction ISO code, e.g. 'IE', 'NL', 'US', etc.
uuid *stringDocument's UUID
include_source_urlbooleanFetch a temporary signed URL to the original file (PDF etc.) where available (default True).
include_textbooleanFetch the full body (default True)
text_formatstring'markdown' (preserves structure) or 'plain'.

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…