Skip to main content
Glama

Search Leginova (full text)

leginova_search
Read-onlyIdempotent

Search New Caledonia's official law portal for JONC acts, consolidated texts, codes, case law, and Congress debates; results include official URLs and follow-up calls.

Instructions

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo1-based page number
sortNoDefault is relevance. CONSOLIDATION_* and ADOPTION_* apply to consolidated texts, ALPHABETIQUE to titles
queryYesSearch terms in French, e.g. "bail commercial" or "\"licenciement économique\""
scopeNoCollection to searchall
date_toNoUpper bound of the document date, YYYY-MM-DD
filtersNoFacet filters as returned in `facets`, e.g. {"filterJuridiction": ["COUR_APPEL"], "filterTheme": ["30"]}. Several values are OR-ed.
date_fromNoLower bound of the document date, YYYY-MM-DD
page_sizeNoResults per page (max 50)
include_facetsNoReturn facet counts (only when scope is not "all")
consolidated_toNoConsolidated texts only: consolidation date upper bound
consolidated_fromNoConsolidated texts only: consolidation date lower bound

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageYes
notesYes
queryYes
totalYes
facetsNo
resultsYes
site_urlYes
page_sizeYes
best_matchesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly/idempotent/non-destructive), so the description uses its space for genuinely additive behavior: default AND semantics, exact-phrase quoting, operator keywords, the shape of each result (official URL to cite plus a `next` tool call), and the scope→facets→filters round-trip. This is real behavioral context beyond structured fields.

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?

Dense but front-loaded: what it searches, then query grammar, then result shape, then facet loop, then the alternative-tool caveat. Every sentence carries information, though the single block is long and could be broken up for faster scanning.

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?

Given 11 parameters, nested `filters`, an output schema, and a rich set of 13 siblings, the description supplies what the schema cannot: the query language, the facets/filters workflow, and routing to leginova_get_code_article. Since an output schema exists, it correctly avoids describing return values in detail.

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 parameters are already well documented and the baseline is 3. The description adds meaning the schema lacks: that `scope` must be restricted for facets, that facet values flow back through `filters`, and that queries are French-language with a specific operator grammar. It does not cover date or pagination semantics, which the schema handles.

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+resource ('full-text search across the official law of New Caledonia on leginova.gouv.nc') and enumerates the covered collections (JONC, consolidated texts, codes, case law, Congress debates). It explicitly distinguishes itself from the sibling leginova_get_code_article for article-by-number lookups.

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?

Gives concrete when-to-use guidance (write queries in French, use scope to get facets, feed facets back through filters) and an explicit when-not: an empty result is not proof a rule doesn't exist, and to fetch a code article by number use leginova_get_code_article. Query-operator semantics (AND default, quotes for exact phrase, OU/SAUF) are documented in the description itself.

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