lawcorpus

v0.1.0
io.github.CloudCorpRecords/lawcorpus Checked 15 hours ago Published 14 days ago

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

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

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

ParameterTypeDescription
category_namestringFilter by category name
limitnumberNumber of results to return
offsetnumberNumber of results to skip
subdomain_idstringFilter 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…

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

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

ParameterTypeDescription
iso *stringFilter by Jurisdiction ISO code (e.g. 'US')
langstringFilter by language
namestringFilter by portal name
tagstringFilter 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.…

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

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

ParameterTypeDescription
iso *stringFilter by Jurisdiction ISO code (e.g. 'US')
crawling_datestringFilter by crawling date
date_of_decisionstringFilter by date of decision
date_of_enactmentstringFilter by date of enactment
document_idstringFilter by document ID
effective_datestringFilter by effective date
expiration_datestringFilter by expiration date
file_data_onlybooleanReturn file data only
issuing_authoritystringFilter by issuing authority
langstringFilter by language
last_amendmentstringFilter by last amendment date
last_updatedstringFilter by last updated date
limitnumberNumber of results to return
offsetnumberNumber of results to skip
portalstringFilter by portal name
publication_datestringFilter by publication date
repealedbooleanFilter by repealed status
section_titlestringFilter by section title
source_identifierstringFilter by source identifier
source_secondary_identifierstringFilter by secondary source identifier
statusstringFilter by status
tagstringFilter by tag
titlestringFilter by title
type_of_authoritystringFilter by type of authority
urlstringFilter by URL
versionstringFilter 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…

ParameterTypeDescription
iso *stringFilter by Jurisdiction ISO code (e.g. 'US')
crawling_datestringFilter by crawling date
date_of_decisionstringFilter by date of decision
date_of_enactmentstringFilter by date of enactment
document_idstringFilter by document ID
effective_datestringFilter by effective date
expiration_datestringFilter by expiration date
file_data_onlybooleanReturn file data only
issuing_authoritystringFilter by issuing authority
langstringFilter by language
last_amendmentstringFilter by last amendment date
last_updatedstringFilter by last updated date
limitnumberNumber of results to return
offsetnumberNumber of results to skip
portalstringFilter by portal name
publication_datestringFilter by publication date
repealedbooleanFilter by repealed status
section_titlestringFilter by section title
source_identifierstringFilter by source identifier
source_secondary_identifierstringFilter by secondary source identifier
statusstringFilter by status
tagstringFilter by tag
titlestringFilter by title
type_of_authoritystringFilter by type of authority
urlstringFilter by URL
versionstringFilter 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…

ParameterTypeDescription
iso *stringFilter by Jurisdiction ISO code (e.g. 'US')
crawling_datestringFilter by crawling date
date_of_decisionstringFilter by date of decision
date_of_enactmentstringFilter by date of enactment
document_idstringFilter by document ID
effective_datestringFilter by effective date
expiration_datestringFilter by expiration date
file_data_onlybooleanReturn file data only
issuing_authoritystringFilter by issuing authority
langstringFilter by language
last_amendmentstringFilter by last amendment date
last_updatedstringFilter by last updated date
limitnumberNumber of results to return
offsetnumberNumber of results to skip
portalstringFilter by portal name
publication_datestringFilter by publication date
repealedbooleanFilter by repealed status
section_titlestringFilter by section title
source_identifierstringFilter by source identifier
source_secondary_identifierstringFilter by secondary source identifier
statusstringFilter by status
tagstringFilter by tag
titlestringFilter by title
type_of_authoritystringFilter by type of authority
urlstringFilter by URL
versionstringFilter 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

ParameterTypeDescription
document_id *integerDocument 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…

ParameterTypeDescription
document_id *integerDocument ID
version *integerVersion

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?"

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

"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.

ParameterTypeDescription
document_id *integerNumeric document_id from any listing/search tool
iso *stringDocument's jurisdiction ISO code, e.g. 'IE', 'NL', 'US', etc.
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'.