Skip to main content
Glama

Fr Code Article

fr_code_article
Read-onlyIdempotent

Read an article of an official French code, Code civil, Code pénal, Code du travail, Code de commerce, Code général des impôts, Code de la santé publique and the other codes in force, by code and article number, from DILA's consolidated LEGI base (the text Légifrance publishes). Returns the text in force today (or on date), its dates of entry into force and end, its place in the code (livre/titre/chapitre), the NOTA, and every version of the article with dates. Use for "what does article 1240 of the Code civil say", "Code du travail L1221-1", "article 121-3 du Code pénal".

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "code": "Code civil",
      "article": "1240"
    },
    "name": "fr_code_article"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe code: its title ("Code civil", "Code du travail", "Code général des impôts"), a short form ("civil", "travail", "CGI", "CPP", "CSP"), or its Légifrance cid (LEGITEXT000006070721).
dateNoOptional YYYY-MM-DD: return the version in force on that date instead of today.
articleYesArticle number as cited: "1240", "L1221-1", "L. 1221-1", "R214-117", "121-3".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and openWorld, so safety is covered; the description usefully adds that the returned text is the version in force today (or on `date`), plus the surrounding payload (entry/end dates, code placement, NOTA, version history). No mention of error behavior for unknown codes/articles or response size limits.

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-loaded with what it does and where the data comes from, then the return payload, then usage examples — good ordering. The long enumeration of individual code names partially duplicates the `code` parameter description and could be trimmed to one or two examples plus 'and other codes in force'.

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 no output schema, the description carries the burden of explaining returns and does so concretely (text in force, dates of entry/end, hierarchical placement, NOTA, all versions). For a simple 3-parameter read tool with full annotation coverage, an agent has everything it needs to call it correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already explains `code` (title, short form, or LEGITEXT cid), `date` (YYYY-MM-DD version selector), and `article` (as cited, e.g. 'L. 1221-1'). The description merely echoes the date semantics and adds no formatting or ambiguity-resolution guidance beyond what the schema states.

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?

Names a precise verb ('Read an article of an official French code'), the resource (an article within a French code), and the authoritative source (DILA consolidated LEGI base). It stops short of naming a sibling tool, and by promising 'every version of the article with dates' it blurs slightly into fr_article_versions territory without stating which to use when.

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?

Gives concrete triggering queries ("what does article 1240 of the Code civil say", "Code du travail L1221-1"), which is clear context for when to use it. It offers no exclusions or 'use X instead' routing to the alternative tools that exist for versions, table of contents, and search.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.