Docs menu

Tools

get_law

One jurisdiction's law across all eight topics, with its sources.

reads Law for one jurisdiction

What it does

One jurisdiction's law, across all thirteen topics LexLint covers: AI law, scraping and access legality, personal-data and biometric privacy, product-security and cyber-resilience law, communications law (marketing messages, calls and texts, call recording, cookie consent), content-moderation law (liability for what users post, notice-and-takedown, moderation transparency), product and AI liability law (who answers for harm a product, software or an AI system causes), digital accessibility law (what a product or service offered to the public must do so that people with disabilities can use it), digital identity and e-signature law (relying on a digital identity wallet or credential, and when an electronic signature or record counts), cloud service law (what a provider of a hosted cloud service owes its customers: switching, egress charges, interoperability, safeguards against foreign governmental access), export control and sanctions law (what software must clear to be exported or offered abroad: encryption classification, listed end users, sanctioned destinations), age-gating and age verification, and reuse law (quotation and snippets, press-publisher rights, linking, news bargaining codes). Returns the instruments (citation, status, behavior categories, as_of_date) together with the jurisdiction's crawl posture: an overall crawl-posture reading, a per-scenario access matrix, robots.txt legal weight, and TDM opt-out status. Argument: jurisdiction (slug). Resolution walks to the most specific jurisdiction with data and reports the walk.

It is one call for all thirteen questions, because it is one payload. It replaced get_ai_law and get_scraping_law, which returned that same payload under two names and left privacy with no name at all. Those two names are gone, not deprecated: a configuration still naming either gets an unknown-tool error, and the fix is to name get_law.

Parameters

NameTypeRequiredWhat it takes
jurisdictionstringyesJurisdiction slug, lowercase, "/"-separated (e.g. "us", "us/ca", "eu")
topicstringnoOptional. Keep only the instruments filed under this topic. Not with instrument.
instrumentstring[]noOptional. Up to 5 record_id values from an index of this same jurisdiction; returns those instruments in full, and lists any it does not hold in not_found.
detailstringnoOptional. index (the default: one short row per instrument) or full (every instrument in full, very large).

Example request

{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "get_law", "arguments": { "jurisdiction": "eu" } } }