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.
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.
{
"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.
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:
Other write tools across the catalogue. The same approach applies to each: rate-limit and validate the arguments.
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.
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.
resolve_law_number is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
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.
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.
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.
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.