Medium Risk

resolve_law_number

Résout un numéro de loi/ordonnance/décret vers son identifiant LEGITEXT ou JORFTEXT Légifrance. Utile pour les textes non codifiés (lois, ordonnances, décrets) qui ne sont pas dans la whitelist des 25 codes courts (CC, CP, LIL, LO58, etc.). Une fois le LEGITEXT/JORFTEXT résolu, on peut l'utiliser...

Risk signalsAdmin/system-level operation

Part of the Justicelibre server.

resolve_law_number can modify Justicelibre data, with no limits today. PolicyLayer puts allow, deny, and rate-limit rules on every call. Live in minutes.

SECURE JUSTICELIBRE →

Free to start. No card required.

AI agents use resolve_law_number to create or modify resources in Justicelibre. Write operations carry medium risk because an autonomous agent could trigger bulk unintended modifications. Rate limits prevent a single agent session from making hundreds of changes in rapid succession. Argument validation ensures the agent passes expected values.

Without a policy, an AI agent could call resolve_law_number repeatedly, creating or modifying resources faster than any human could review. PolicyLayer's rate limiting ensures write operations happen at a controlled pace, and argument validation catches malformed or unexpected inputs before they reach Justicelibre.

Write tools can modify data. A rate limit prevents runaway bulk operations from AI agents.

policy.json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "resolve_law_number": {
      "limits": [
        {
          "counter": "resolve_law_number_rate",
          "window": "minute",
          "max": 30,
          "scope": "grant"
        }
      ]
    }
  }
}

See the full Justicelibre policy for all 30 tools.

Get this rule live on your own Justicelibre server in minutes. PolicyLayer enforces it on every call, before it runs.

ENFORCE ON MY JUSTICELIBRE →

View all 30 tools →

These attack patterns abuse exactly the kind of access resolve_law_number gives an agent. Each links to the full case and the policy that stops it:

Browse the full MCP Attack Database →

Every attack above starts with a tool call. PolicyLayer checks each one against your policy first, so resolve_law_number only ever does what you allow.

SECURE JUSTICELIBRE →

Other write tools across the catalogue. The same approach applies to each: rate-limit and validate the arguments.

What does the resolve_law_number tool do? +

Résout un numéro de loi/ordonnance/décret vers son identifiant LEGITEXT ou JORFTEXT Légifrance. Utile pour les textes non codifiés (lois, ordonnances, décrets) qui ne sont pas dans la whitelist des 25 codes courts (CC, CP, LIL, LO58, etc.). Une fois le LEGITEXT/JORFTEXT résolu, on peut l'utiliser avec get_law_article(code=<LEGITEXT>, num=<N>) pour récupérer un article spécifique. Exemples : - resolve_law_number("68-1250") → loi prescription quadriennale des créances publiques (JORFTEXT000000878035) - resolve_law_number("79-587") → loi motivation des actes admin - resolve_law_number("2000-321") → loi droits citoyens face à l'admin Args: numero: format "YY-NNNN" ou "YYYY-NNNN" (ex: "68-1250", "2000-321") Returns: {numero, legitext, titre_section, date_debut, articles_count, source_url} ou {error} si introuvable.. It is categorised as a Write tool in the Justicelibre MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.

How do I enforce a policy on resolve_law_number? +

Register the Justicelibre MCP server in PolicyLayer and add a rule for resolve_law_number: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Justicelibre. Nothing to install.

What risk level is resolve_law_number? +

resolve_law_number is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.

Can I rate-limit resolve_law_number? +

Yes. Add a rate_limit block to the resolve_law_number rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block resolve_law_number completely? +

Set action: deny in the PolicyLayer policy for resolve_law_number. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides resolve_law_number? +

resolve_law_number is provided by the Justicelibre MCP server (https://justicelibre.org/mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

Enforce policy on every Justicelibre tool call.

Deterministic rules across all 30 Justicelibre tools. Per-identity grants. Full audit log. Live in minutes. Nothing to install.

Free to start. No card required.

4,600+ MCP servers and 31,000+ tools scanned and risk-classified.

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.