Skip to main content
Glama

Read a code article

leginova_get_code_article
Read-onlyIdempotent

Retrieves a single New Caledonian code article by slug or article number, returning its text, amendment history, code position, adjacent articles, and official URL.

Instructions

Returns one code article (text, amendment history, place in the code, previous/next articles, official URL). Give either article_slug (from search results or outlines) or article_number. article_number matching is prefix-tolerant: "L. 441-6", "Lp 441-6", "441-6" or "art. 1er" all resolve, and the result states how the match was made (match_status). "Lp." numbers articles adopted or localized by a New Caledonian loi du pays: the metropolitan "L. 441-6" is "Lp. 441-6" in the Code de commerce applicable en Nouvelle-Calédonie. The same number can also exist under several prefixes as distinct articles; the result lists them. Without code_slug, every code is searched. A not_found status is never proof that no legal basis exists: relay the notice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
code_slugNoCode to look in; omit to search all codes by article_number
article_slugNoe.g. "partie-legislative-article-lp-334-26"
article_numberNoe.g. "L. 441-6", "Lp. 122-13", "R. 4211-1", "2276", "1er"

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe full answer as Markdown: notices, article text, history, neighbours
noticeNo
articleNo
requestedYes
candidatesYes
match_statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent/open-world safety, so the description is free to add the behavior that matters: prefix-tolerant matching, the match_status disclosure, the Lp. vs L. New Caledonia distinction, duplicate numbers across prefixes, and the critical caveat that not_found is never proof no legal basis exists.

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?

Front-loads the return value and the two input paths before the edge cases, which is well ordered. It is dense and the New Caledonian loi du pays digression is lengthy, but each sentence carries real disambiguation value.

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

Completeness5/5

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

With an output schema present, return values need no elaboration, and the description covers matching semantics, defaults and the failure-mode caveat. Nothing an agent needs to call this correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description genuinely adds meaning: it explains that article_number matching is prefix-tolerant with concrete variants, and that omitting code_slug broadens the search to all codes, which the schema only states tersely.

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?

States a specific verb and resource ('Returns one code article') and enumerates what comes back (text, amendment history, place in the code, previous/next articles, official URL). This clearly separates it from search, outline and section-reading siblings.

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

Usage Guidelines4/5

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

Explains the two entry paths (article_slug from search results or outlines, or article_number) and that omitting code_slug searches every code. It gives a clear usage context but does not explicitly say when to prefer read_code_section or search instead.

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