Skip to main content
Glama

List the codes

leginova_list_codes
Read-onlyIdempotent

Lists all 31 Leginova codes with slugs, filing authority (Etat, Nouvelle-Calédonie, Province), and publication dates. Clarifies misleading titles and mixed competence.

Instructions

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteYes
codesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish the safe read-only, idempotent, open-world profile, so the bar is lower. The description still adds real value beyond them by disclosing latency ('takes a few seconds' on the first call) and the fact that the call reads every code, which the annotations do not convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose is front-loaded, but the description runs long: the two Nouvelle-Calédonie filing examples and the mixed-code/prefix explanation are educational and back-loaded, only tangentially serving tool selection. Useful for interpreting output but not tightly edited.

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

Completeness4/5

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

An output schema exists, so return-value documentation is not required, and the description instead prepares the agent for data quirks (misleading titles, mixed State/loi-du-pays codes, per-article competence). That is adequate coverage for a no-argument listing tool; only the absence of explicit routing to siblings leaves a small gap.

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?

The tool takes zero parameters and schema coverage is effectively complete, so there is nothing for the description to clarify. Baseline 4 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (lists) and resource (the 31 consolidated codes) and enumerates the fields returned: slug, filing authority, and published-version date. It hints at its role as the entry point for the other code tools but never names a sibling it should be preferred over, so differentiation is implicit rather than explicit.

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

Usage Guidelines3/5

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

The phrase 'the slug every other code tool expects' and 'the first call reads every code' imply this is the prerequisite entry point before the code-outline/article tools, which is useful. However, no alternative tool is named and no explicit when-to-use/when-not-to-use condition is stated, so guidance is inferred rather than given.

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