Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HOSTNoÉcoute en mode HTTP (HTTP mode listen host)127.0.0.1
PORTNoÉcoute en mode HTTP (HTTP mode listen port)3000
LEGINOVA_RETRIESNoNouvelles tentatives sur erreur transitoire (429, 5xx, réseau)2
LEGINOVA_BASE_URLNoSite interrogé (the Leginova site queried)https://leginova.gouv.nc
LEGINOVA_CACHE_MBNoTaille du cache mémoire (memory cache size)256
MCP_ALLOWED_HOSTSNoNoms d'hôte acceptés quand l'écoute n'est pas en boucle locale (obligatoire dans ce cas)
LEGINOVA_MAX_PDF_MBNoTaille maximale d'un PDF téléchargé pour extraction (maximum size of a downloaded PDF for extraction)80
LEGINOVA_TIMEOUT_MSNoDélai maximal par requête (maximum timeout per request)30000
LEGINOVA_USER_AGENTNoUser-Agent envoyéleginova-mcp/<version> (...)
MCP_ALLOWED_ORIGINSNoOrigines navigateur acceptées (browser origins accepted)MCP_ALLOWED_HOSTS
LEGINOVA_CACHE_TTL_SNoDurée de vie du cache (cache TTL)3600
LEGINOVA_MAX_CONCURRENCYNoRequêtes simultanées vers Leginova (concurrent requests to Leginova)4

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}
completions
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
leginova_searchA

Full-text search across the official law of New Caledonia on leginova.gouv.nc: Journal officiel (JONC) acts, consolidated texts (lois du pays, délibérations, arrêtés...), codes, case law and Congress debates. Write queries in French. Words are AND-ed by default; "double quotes" search an exact phrase; OU / SAUF (or OR / NOT) combine terms. Each result carries its official URL (cite it) and a next tool call to open it. Restrict scope to get facets (themes, courts, act types...) that can be fed back through filters. An empty result is not proof that a rule does not exist; to fetch a code article by number use leginova_get_code_article.

leginova_advanced_searchA

Structured search mirroring leginova.gouv.nc/recherche-avancee. Pick a target, then either keyword groups (all_words / any_words / exclude_words / exact_phrase) or boolean conditions (ET/OU/SAUF with a field scope), plus filters. Use it for precise requests: acts of a given type and authority over a period, decisions of a given court, articles of selected codes. IDs for themes, authorities, collectivities, act types, courts and codes come from leginova_get_catalogue. Filters apply per target: act_types/authority_ids (actes, textes_consolides), collectivity_ids (actes, codes, global), code_slugs/section_types (codes), courts/court_orders/decision_types/case_number (jurisprudence), consolidated_* (textes_consolides). The meaning of date_from/date_to follows the target: publication date (actes), application date (codes), text date (textes_consolides), hearing date (jurisprudence). There is no article-number field here: use leginova_get_code_article, which tolerates L./Lp. prefixes.

leginova_suggestA

Autocomplete over titles: turns a partial name ("code du travail", "loi du pays 2021-2", "télétravail") into documents with their ids and slugs. Cheaper than a search when the target is known by name.

leginova_list_codesA

Lists the 31 consolidated codes published on Leginova with the slug every other code tool expects, the filing authority of each code (Etat, Nouvelle-Calédonie, Province) and the date of the published version. Titles alone mislead: "Code civil applicable en Nouvelle-Calédonie" is filed by New Caledonia, "Code de la consommation applicable en Nouvelle-Calédonie" by the State, next to a separate "Code de la consommation de Nouvelle-Calédonie". Codes can also be mixed: the Code de commerce applicable en Nouvelle-Calédonie, filed by New Caledonia, keeps State-law articles (L.) next to loi du pays articles (Lp.), so competence is read article by article from the prefix. The first call reads every code and takes a few seconds.

leginova_get_code_outlineA

Table of contents of a code (parts, books, titles, chapters, sections) with article counts and the section_slug / article_slug needed to read them. Start broad (depth 2), then zoom in with section_slug.

leginova_get_code_articleA

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.

leginova_read_code_sectionA

Full text of a code section (chapter, section...) with all its articles, in reading order. Long sections are returned in chunks: pass back offset to continue.

leginova_get_texte_consolideA

Reads a consolidated text (loi du pays, délibération, arrêté... in its current version with all amendments applied). mode "outline" returns metadata, the table of articles and the amendment history; mode "full" returns the text itself, chunked by max_chars (pass back offset to continue). Pass article_id to read a single article with its own history. Always state the consolidation date when quoting: the text is the version in force on that date.

leginova_get_jurisprudenceA

Reads a decision published on Leginova (Conseil d'État, Cour de cassation, Cour d'appel de Nouméa, Tribunal administratif, Conseil constitutionnel...): metadata plus the full text extracted from the official PDF, by page range. text_status says whether text was found and, if not, why.

leginova_get_joncA

Opens an issue of the Journal officiel de la Nouvelle-Calédonie (JONC). Numbers like "2026-00020" are items of the new electronic JONC and return the full act directly; plain numbers like "10068" are classic issues and return their table of contents (acts by section, legal publications, associations), each with the id to pass to leginova_get_jonc_item. The issue date is the JONC publication date of every act it contains. leginova_browse lists the issues of a year.

leginova_get_jonc_itemA

Reads one item published in the JONC: an act (arrêté, délibération, loi du pays, State law...), a legal publication or an association notice. Returns published_in_jonc_on (date of publication in the JONC) and the filing authority with every act. Recent acts come as structured text. For many older acts Leginova holds metadata only: with pdf_text "auto" the text is then extracted from the official PDF. text_status is "structured", "pdf_text" or "not_available" with a reason (pdf_without_text_layer = image scan, retrying other pages will not help). pdf_scope "whole_issue" means the PDF is the entire JONC issue, not the act alone.

leginova_get_debatA

Reads the record of a sitting of the Congrès de la Nouvelle-Calédonie ("compte rendu des débats", numbers like "DR-2026-00005"), extracted from the official PDF by page range. These PDFs run to hundreds of pages and the first access downloads up to 60 MB (a few seconds): read them page range by page range.

leginova_browseA

Lists a collection chronologically, like the site map: without year, the number of entries per year; with year, every entry of that year (paged with offset/limit). Collections: textes_consolides (by adoption year), jurisprudence (by hearing year), debats (Congress debates), jonc (Journal officiel issues). Useful for "what was published in 2025" questions that a keyword search cannot express.

leginova_get_catalogueA

Identifiers accepted by leginova_advanced_search: codes, themes, issuing authorities, collectivities, act types, courts, decision types, section types and condition scopes. Filter by section and by a contains substring to keep the answer short.

Prompts

Interactive templates invoked by user choice

NameDescription
legal_researchFinds, reads and cites the applicable texts, codes and decisions on Leginova
analyze_consolidated_textSummary, structure, amendment history and implementing texts of one consolidated text
code_article_checkVerifies that an article reference exists in a New Caledonian code and returns its current text
jonc_watchSummarizes what was published in the JONC over a period, optionally on a topic

Resources

Contextual data attached and managed by the client

NameDescription
guideWorkflow, citation rules, article-number prefixes (L./Lp.) and sources of New Caledonian law
codesThe 31 codes with their slugs

TDQS

A4.1/5.0

Scored across 14 tools

Disambiguation4/5

The tools target distinct resources and workflows, but there is some overlap between leginova_search, leginova_advanced_search, and leginova_suggest, and between the code retrieval tools. Descriptions clarify intended use, so misselection is possible but manageable.

Naming Consistency4/5

Nearly all tools use a consistent leginova_ prefix with snake_case naming. Minor deviations include mixed retrieval verbs (get vs read) and the adjective-first leginova_advanced_search, but the pattern remains readable and predictable.

Tool Count5/5

With 14 tools, the server is well-scoped for legal research across codes, texts, JONC, jurisprudence, and debates. Each tool appears to cover a distinct retrieval or navigation need.

Completeness5/5

The surface covers search, advanced search, autocomplete, code browsing, article and section reading, consolidated texts, jurisprudence, JONC issues and items, debates, chronological browsing, and catalogue identifiers. This provides complete lifecycle coverage for the legal research domain without obvious dead ends.

Maintenance

ActivityMaintained
ResponsivenessNo issues