lawcorpus
v0.1.0Browse and read a global legal corpus: jurisdictions, authorities, documents and full texts.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_jurisdictions
List all jurisdictions (countries/states) available in the Lawstronaut legal corpus. Call this FIRST when answering legal questions so you know which "iso" codes are valid for the other tools. Result is cached for the MCP process lifetime Returns: {data: [{"name": "Belgium", "iso": "BE", "type": "country"}, ...]} - Full list of jurisdiction objects including names, iso, and type
list_domains
Retrieves a list of domains for a specific jurisdiction and optional filters. Use this tool when: - The user wants to find legal domains for a specific jurisdiction and optional filters - The user asks about available domains for a domain name - The user wants to filter with pagination Parameters: - domain (optional): Filter domains by name - limit: z.number().optional().describe("Number of results to return"), - offset: z.number().optional().describe("Number of results to skip") Returns: - List of domains with domain_id, domain, pagination: total_coun…
| Parameter | Type | Description |
|---|---|---|
domain | string | Filter by domain name |
limit | number | Number of results to return |
offset | number | Number of results to skip |
list_subdomains
Retrieves a list of subdomains for a specific jurisdiction and optional filters. Use this tool when: - The user wants to find legal subdomains for a specific jurisdiction and optional filters - The user asks about available subdomains for a domain id - The user wants to filter subdomains by name with pagination Parameters: - domain_id (required): Filter by Domain ID. - subdomain (optional): Filter subdomains by name - limit: z.number().optional().describe("Number of results to return"), - offset: z.number().optional().describe("Number of results to skip")…
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Filter by Domain ID |
limit | number | Number of results to return |
offset | number | Number of results to skip |
subdomain | string | Filter by subdomain name |
list_categories
Retrieves a list of categories for a specific jurisdiction and optional filters. Use this tool when: - The user wants to find legal categories for a specific jurisdiction and optional filters - The user asks about available categories for a subdomain id - The user wants to filter categories by name with pagination Parameters: - subdomain_id (optional): Filter by Subdomain ID. - category_name (optional): Filter categories by name - limit: z.number().optional().describe("Number of results to return"), - offset: z.number().optional().describe("Number of result…
| Parameter | Type | Description |
|---|---|---|
category_name | string | Filter by category name |
limit | number | Number of results to return |
offset | number | Number of results to skip |
subdomain_id | string | Filter by Subdomain ID |
list_subcategories
Retrieves a list of subcategories for a specific jurisdiction and optional filters. Use this tool when: - The user wants to find legal subcategories for a specific jurisdiction and optional filters - The user asks about available subcategories for a category id - The user wants to filter subcategories by name with pagination Parameters: - category_id (required): Filter by Category ID. - subcategory_name (optional): Filter subcategories by name - limit: z.number().optional().describe("Number of results to return"), - offset: z.number().optional().describe("N…
| Parameter | Type | Description |
|---|---|---|
category_id * | string | Filter by Category ID |
limit | number | Number of results to return |
offset | number | Number of results to skip |
subcategory_name | string | Filter by subcategory name |
list_law_types
Retrieves a list of law types for a specific jurisdiction and optional filters. Use this tool when: - The user wants to find legal law types for a specific jurisdiction and optional filters - The user asks about available law types for a subcategory id - The user wants to filter law types by name with pagination Parameters: - subcategory_id (required): Filter by Subcategory ID. - law_type (optional): Filter law types by name - limit: z.number().optional().describe("Number of results to return"), - offset: z.number().optional().describe("Number of results to…
| 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 |
offset | number | Number of results to skip |
list_portals
Retrieves a list of legal portals filtered by jurisdiction and optional criteria. Use this tool when: - The user wants to find legal portals, websites, or resources for a specific jurisdiction - The user asks about available portals in a country or state - The user wants to filter portals by name, language, or tag with total crawled links Parameters: - iso (required): Filter by Jurisdiction ISO code (e.g. "US"). - name (optional): Filter portals by name or URL keyword - tag (optional): Filter portals by tag - lang (optional): Filter portals by language name…
| Parameter | Type | Description |
|---|---|---|
iso * | string | Filter by Jurisdiction ISO code (e.g. 'US') |
lang | string | Filter by language |
name | string | Filter by portal name |
tag | string | Filter by portal tags |
list_authority_types
Retrieves a list of authority types. Use this tool when: - The user wants to find legal authority types for a specific jurisdiction and optional filters - The user asks about available authority types for a portal name, authority type - The user wants to filter with pagination Parameters: - iso (required): Filter by Jurisdiction ISO code (e.g. "US"). - limit (optional): Number of results to return. - offset (optional): Number of results to skip. - portal_name (optional): Filter by portal name. - authority_type (optional): Filter by authority type.…
| 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 |
offset | number | Number of results to skip |
portal_name | string | Filter by portal name |
list_issuing_authorities
Retrieves a list of issuing authorities for a specific jurisdiction and optional filters. Use this tool when: - The user wants to find legal issuing authorities for a specific jurisdiction and optional filters - The user asks about available issuing authorities for a portal name, issuing authority - The user wants to filter with pagination Parameters: - iso (required): Filter by Jurisdiction ISO code (e.g. "US"). - limit (optional): Number of results to return. - offset (optional): Number of results to skip. - portal_name (optional): Filter by portal name.…
| 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 |
offset | number | Number of results to skip |
portal_name | string | Filter by portal name |
list_documents
List documents in a jurisdiction with structured filters and pagination. Use this tool when: - The user wants to find legal content for a specific jurisdiction and optional filters - The user asks about available content for a portal name, title, section_title, url, status, repealed, publication_date and crawling_date - The user wants to filter content for type of authority, issuing authority, source identifier, source secondary identifier, tag Parameters: - iso (required): Jurisdiction ISO code (e.g. "US"). - portal (optional): Portal name. - limit (optional)…
| Parameter | Type | Description |
|---|---|---|
iso * | string | Filter by Jurisdiction ISO code (e.g. 'US') |
crawling_date | string | Filter by crawling date |
date_of_decision | string | Filter by date of decision |
date_of_enactment | string | Filter by date of enactment |
document_id | string | Filter by document ID |
effective_date | string | Filter by effective date |
expiration_date | string | Filter by expiration date |
file_data_only | boolean | Return file data only |
issuing_authority | string | Filter by issuing authority |
lang | string | Filter by language |
last_amendment | string | Filter by last amendment date |
last_updated | string | Filter by last updated date |
limit | number | Number of results to return |
offset | number | Number of results to skip |
portal | string | Filter by portal name |
publication_date | string | Filter by publication date |
repealed | boolean | Filter by repealed status |
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 status |
tag | string | Filter by tag |
title | string | Filter by title |
type_of_authority | string | Filter by type of authority |
url | string | Filter by URL |
version | string | Filter by version |
get_document_text
Retrieves full text for a specific jurisdiction and optional filters. Use this tool when: - The user asks about available full text for a portal name, title, section_title, url, status, repealed, publication_date and crawling_date - The user wants to filter full text for type of authority, issuing authority, source identifier, source secondary identifier, tag Parameters: - iso (required): Jurisdiction ISO code (e.g. "US"). - portal (optional): Portal name. - limit (optional): Number of results to return. - offset (optional): Number of results to skip. - do…
| Parameter | Type | Description |
|---|---|---|
iso * | string | Filter by Jurisdiction ISO code (e.g. 'US') |
crawling_date | string | Filter by crawling date |
date_of_decision | string | Filter by date of decision |
date_of_enactment | string | Filter by date of enactment |
document_id | string | Filter by document ID |
effective_date | string | Filter by effective date |
expiration_date | string | Filter by expiration date |
file_data_only | boolean | Return file data only |
issuing_authority | string | Filter by issuing authority |
lang | string | Filter by language |
last_amendment | string | Filter by last amendment date |
last_updated | string | Filter by last updated date |
limit | number | Number of results to return |
offset | number | Number of results to skip |
portal | string | Filter by portal name |
publication_date | string | Filter by publication date |
repealed | boolean | Filter by repealed status |
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 status |
tag | string | Filter by tag |
title | string | Filter by title |
type_of_authority | string | Filter by type of authority |
url | string | Filter by URL |
version | string | Filter by version |
get_markdown
Retrieves markdown for a specific jurisdiction and optional filters. Use this tool when: - The user asks about available markdown for a portal name, title, section_title, url, status, repealed, publication_date and crawling_date - The user wants to filter markdown for type of authority, issuing authority, source identifier, source secondary identifier, tag Parameters: - iso (required): Jurisdiction ISO code (e.g. "US"). - portal (optional): Portal name. - limit (optional): Number of results to return. - offset (optional): Number of results to skip. - docum…
| Parameter | Type | Description |
|---|---|---|
iso * | string | Filter by Jurisdiction ISO code (e.g. 'US') |
crawling_date | string | Filter by crawling date |
date_of_decision | string | Filter by date of decision |
date_of_enactment | string | Filter by date of enactment |
document_id | string | Filter by document ID |
effective_date | string | Filter by effective date |
expiration_date | string | Filter by expiration date |
file_data_only | boolean | Return file data only |
issuing_authority | string | Filter by issuing authority |
lang | string | Filter by language |
last_amendment | string | Filter by last amendment date |
last_updated | string | Filter by last updated date |
limit | number | Number of results to return |
offset | number | Number of results to skip |
portal | string | Filter by portal name |
publication_date | string | Filter by publication date |
repealed | boolean | Filter by repealed status |
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 status |
tag | string | Filter by tag |
title | string | Filter by title |
type_of_authority | string | Filter by type of authority |
url | string | Filter by URL |
version | string | Filter by version |
get_source_url
Get a time-limited signed URL to the original source file (PDF etc.). Use this tool when: - The user wants to find a pdf URL for a specific document - The user asks about presigned URL for a pdf Parameters: - document_id (required): Document ID. Returns: - PDF URL for a specific document with document_id and pdf_url
| Parameter | Type | Description |
|---|---|---|
document_id * | integer | Document ID |
get_document_with_version
Retrieves a specific document with a specific version. Use this tool when: - The user wants to find a specific document with a specific version - The user asks about available a specific document with a specific version Parameters: - document_id (required): Document ID. - version (required): Version. Returns: - Content with version with title, section_title, publication_date, effective_date, expiration_date, date_of_enactment, date_of_last_amendment, date_of_repealed, date_of_decision, status, version, source_identifier, source_secondary_identifier, issuing_au…
| Parameter | Type | Description |
|---|---|---|
document_id * | integer | Document ID |
version * | integer | Version |
horizon_scan
Scans recent legal documents across jurisdictions. Use this when the user asks: - "What laws changed recently in Netherland?" - "Show me new regulations from last week" - "Any updates in NL law?"
| 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
"Show me the source." For a specific document, return the full citation chain in one call: metadata (with all dates and identifiers), permanent legal_link, signed URL to the original source file (if available), and the full document body in markdown or plain text. Designed for auditability.
| Parameter | Type | Description |
|---|---|---|
document_id * | integer | Numeric document_id from any listing/search tool |
iso * | string | Document's jurisdiction ISO code, e.g. 'IE', 'NL', 'US', etc. |
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'. |