LexLint: a lint for the law that governs software

v1.0.4
io.lexlint/lexlint Checked 4 days ago Published 1 month ago

Declare what your app does and where it operates; get cited, jurisdiction-specific findings.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

set_profile Validate an app profile

Step 1 of the lint. Declare what the app does (activities) and where it will operate (jurisdiction slugs), from the app's own code: ask the user which app if they have not said, and lint only one whose code you can open (the open folder, a public repository, one the user connected, or code pasted into the chat). If you cannot open it, say so and do not declare from a description. Get back the validated, canonical profile plus what the law library holds for each jurisdiction, so the depth of a run is known before it is spent. Write the returned profile into the project's lexlint.yml, or show it…

run_lint Lint an app against the law

Step 2 of the lint, and the one that returns findings. Pass the activities and jurisdictions set_profile validated, and get lint-style findings: which obligations apply, with severity (warn/info), citation, as_of_date, staleness, and confidence. warn: a live obligation binds the profile (obligation), a posture finding needs attention (posture), or LexLint lacks current data for a declared jurisdiction (coverage). info: context rather than a live duty, and kind says which it is: an instrument LexLint cannot say is in force today (pending), a jurisdiction-wide statement of how the local law trea…

get_law Law for one jurisdiction

One jurisdiction's law from the LexLint law library, across all thirteen topics LexLint covers: AI law, scraping/crawling 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 tha…

ParameterTypeDescription
jurisdiction *stringJurisdiction slug, lowercase, "/"-separated (e.g. "us", "us/ca", "eu")
detailstringOptional. index (the default: one short row per instrument) or full (every instrument in full, very large).
instrumentarrayOptional. 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.
topicstringOptional. Keep only the instruments filed under this topic. Not with instrument.

resolve_domain_jurisdiction Domain to governing jurisdiction

Best-effort mapping from a domain to the jurisdiction whose law governs its OPERATOR, for feeding into the other tools. Never uses server or edge-node location; IP addresses are refused. Costs one to four upstream requests, varying with how many domain-label candidates it tries before a match; a fall-back to top-level-domain inference costs nothing further. Not part of a lint's own five-request total (check_access, set_profile, run_lint): call this only to derive a jurisdiction from a domain rather than declaring one. It is open without an account up to 25 lookups a day, one call being one loo…

ParameterTypeDescription
domain *stringHostname or URL (e.g. "ventura.org"). IP addresses are rejected.

check_access Key, allowance and law library preflight

Preflight. Reports whether an UnGovr Open Data key reached LexLint, whether it is valid, how much of today's free allowance is left and when it resets, how current the law library is, and whether the LexLint plugin you are running is the latest published one. Call this first: a missing key otherwise surfaces several steps later as a rejected tool call. Costs one upstream request, always: the optional jurisdictions preview below rides this same request rather than spending a second one. It also returns tested_model_families, the model families LexLint's procedure is exercised against, and model…

ParameterTypeDescription
client_versionstringThe LexLint plugin version you are running, from your SKILL.md. Send it: an installed plugin is frozen at the version it was installed at, and this is the only way the response can tell the developer…
jurisdictionsarrayOptional. Slugs you intend to declare. Returns what the law library holds for each, adding nothing to the cost above: check_access spends that one request whether or not this is set, so the depth of a…

submit_feedback Send feedback to the LexLint team

Send the developer's feedback on LexLint to the people who build it, recorded against their UnGovr account so we can write back. Run this ONLY on the developer's explicit yes. It may be raised unprompted in exactly one place, the close of a lint run whose upload approval was declined; never volunteer it anywhere else, and never run it in a headless or CI session where nobody can approve anything. Draft the usage summary from what you actually did this session, print the exact payload, and send only what they have explicitly approved, unchanged. Never read the session transcript to build it: a…

ParameterTypeDescription
comments *stringWhat the developer wants to say, in their own words. Required: a submission with nothing said is not feedback.
clientstringOptional. The agent this ran in, for example "claude-code".
plugin_versionstringOptional. The LexLint plugin version, from .claude-plugin/plugin.json.
usage_summarystringOptional. A short summary YOU drafted of how the lint was used this session, which the developer read and approved. If no lint ran, omit it rather than inventing one.

upload_lint_run Upload this run to the LexLint portal

Store one lint run on the LexLint portal, against the UnGovr account that signed in or owns the key, and return the portal URL and, for a trial key, a share URL that opens the run with no sign-in for 30 days. This is the closing step of every run that produced findings, raised unprompted in exactly one place, the close of that run, and never volunteered anywhere else. Before the call the developer is shown the payload, exactly what will leave the repository, and the approval they give to the call is the yes; a declined approval means nothing was sent. Where the client asks nothing before a cal…