Skip to main content
Glama

Fr Legi Search

fr_legi_search
Read-onlyIdempotent

Full-text search across the articles in force of the French codes (DILA LEGI consolidated text), find which article of French law deals with a subject, in French: "responsabilité du fait des choses", "licenciement pour motif économique", "abus de biens sociaux". Optional code restricts to one code. Returns ranked articles with code, number, section path and an excerpt; quote a phrase for an exact phrase match.

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",
      "limit": 5,
      "query": "responsabilité du fait des choses"
    },
    "name": "fr_legi_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoOptional, restrict to one code. The 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: only articles in force on that date (default today).
limitNoResults to return, 1-25 (default 10).
queryYesWords or a "quoted phrase", in French. Accents optional.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / code / description
      Previous value: -"Optional — restrict to one code. The 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)."New value: +"Optional, restrict to one code. The 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)."
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered by structured data. The description adds behavior beyond that: results are ranked and each carries code, number, section path and an excerpt, and the corpus is limited to consolidated in-force text. It omits pagination behavior and whether the limit truncates or ranks.

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?

Purpose is front-loaded in the first clause, and the trailing sentence efficiently bundles scope restriction, return shape and phrase-matching. The three inline example queries are useful but make the first sentence long; a bulleted structure would read faster, though nothing is genuinely wasted.

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?

With no output schema, the description correctly takes on the return-value burden by listing the fields of each ranked article and the excerpt. Combined with 100% schema coverage for inputs, an agent has what it needs; only pagination/truncation semantics and explicit sibling routing are missing.

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 coverage is 100%, so all four parameters (query, code, date, limit) are already documented in structured fields. The description reinforces the optional code restriction and the quoted-phrase convention but adds no syntax, default, or edge-case meaning the schema does not already carry; baseline 3 applies.

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?

The description gives a specific verb and resource (full-text search across articles in force of the French codes, DILA LEGI), plus the job it solves in practice ("find which article of French law deals with a subject") and three concrete French example queries. That is enough for an agent to separate it from fr_code_article or fr_code_toc, which operate on a known article or structure rather than a subject query.

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?

It states a clear usage context (subject-based lookup, French-language queries, optional narrowing to a single code) and the exact-phrase trick. It stops short of naming when NOT to use it or which sibling to pick when the article number is already known, so the routing burden stays partly with the agent.

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.