Skip to main content
Glama

LexLint: a lint for the law that governs software

Key, allowance and law library preflight

check_access
Read-only

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_notice, an advisory for the developer. Nothing about your model is sent here and no argument carries one.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
jurisdictionsNoOptional. 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_versionNoThe 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, openWorldHint=false and destructiveHint=false, so safety is covered. The description adds genuine non-schema context: it costs exactly one upstream request regardless of arguments, and nothing about the calling model is transmitted. It does not cover rate limits beyond the allowance mention or error/partial-failure behavior, so it is solid but not rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the one-word purpose and the imperative 'Call this first', then descends into detail. It runs longer than needed for a two-optional-parameter read tool, and the privacy sentence at the end is a slight tangent, but almost every sentence carries usable information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description must describe return values, and it does: key receipt/validity, allowance and reset, library currency, plugin currency, plus tested_model_families and model_notice. The one gap is that it does not name the concrete response field for update_available outside the schema text, but an agent has enough to call it and interpret results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so both parameters are already documented in the schema, which sets baseline 3. The description reinforces the cost-neutrality of 'jurisdictions' ('rides this same request rather than spending a second one') but repeats the client_version omission semantics already stated in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb-resource pair ('Preflight. Reports whether an UnGovr Open Data key reached LexLint...') and enumerates the exact facts returned: key validity, remaining allowance, reset time, library currency, plugin version. That is clearly distinguishable from siblings like get_law, run_lint or claim_trial_key, which perform actual work rather than diagnostics.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit directive — 'Call this first' — and justifies it with the failure mode avoided ('a missing key otherwise surfaces several steps later as a rejected tool call'). That is a when-to-use rule plus a consequence, so no inference is required.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources