Docs menu

Tools

check_access

The preflight: is the key good, and how current is the law library?

reads Key, allowance and law library preflight

What it does

The preflight, and the first call to make. It reports whether a key reached LexLint, whether it is valid, how much of today's free allowance is left and when it resets, and how current the LexLint law library is. Pass the slugs you intend to declare and it also returns what the law library holds for each.

Call it first because a missing key otherwise surfaces several steps later, as a rejected tool call in the middle of a lint rather than as one line before anything was asked. It costs one upstream request, always, whether or not jurisdictions is set: the coverage preview that argument returns is read from the same fetch the preflight already makes, not a second one.

It also answers which models LexLint's procedure is exercised against, in tested_model_families and model_notice. Your agent compares its own model against that list and tells you if it is not on it, so you can switch before spending a run or carry on knowing. The comparison happens in your session: check_access has no argument that carries a model, and LexLint is never told which one you are running. It is an advisory rather than a gate, and the lint is the same lint either way.

Parameters

NameTypeRequiredWhat it takes
jurisdictionsstring[]noOptional. 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 run is known before it is spent.
client_versionstringnoThe 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 a newer one exists. Omitted, update_available comes back null, which means LexLint learned nothing about it, never that you are current.

Example request

{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "check_access", "arguments": { "jurisdictions": [ "eu", "us/ca" ] } } }