Skip to main content
Glama

Explorer une section de code (Légifrance)

explorer_section_detaillee
Read-onlyIdempotent

Explore en profondeur les sections spécifiques d'un code après exploration de la table des matières. Donne le contenu détaillé des sections identifiées comme pertinentes. Permet de voir tous les articles d'une section et leurs relations.

Cette fonction permet de naviguer dans la structure hiérarchique d'un code juridique en se concentrant sur des sections spécifiques. Elle récupère le contenu détaillé des sections, leurs sous-sections, et les articles qu'elles contiennent jusqu'à la profondeur spécifiée.

QUAND UTILISER CET OUTIL:

  • APRÈS rechercher_codes_via_search (qui donne les identifiants des sections) pour approfondir une section identifiée

  • Pour obtenir le détail complet d'un chapitre ou d'une section spécifique

  • Pour voir tous les articles groupés dans une même section thématique

  • Pour explorer les sous-sections imbriquées dans une structure complexe

UTILISATION: Après avoir identifié des sections d'intérêt via rechercher_codes_via_search(), cette fonction permet d'approfondir l'analyse en récupérant le contenu structuré.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "explorer_section_detaillee"
  }
}

Input Schema

NameRequiredDescriptionDefault
profondeurNoNiveau de profondeur de l'exploration. Valeurs possibles: - 0: Section uniquement, sans sous-sections ni articles - 1: Section + sous-sections directes (par défaut) - 2: Section + sous-sections + sous-sous-sections (maximum recommandé) ATTENTION: Profondeur > 2 limitée automatiquement pour éviter surcharge. Par défaut: 1
section_idNoIdentifiant d'une seule section à explorer. Alternative à section_ids pour explorer une seule section.
section_idsNoListe d'identifiants de sections à explorer. Format des IDs de section: généralement des codes internes retournés par rechercher_codes_via_search() ou autres fonctions d'exploration. Exemple: ["SEC123456", "SEC789012", ...]

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile needs no restating. The description adds that the result includes subsections, articles and their relations, but says nothing about result size, pagination or what happens when a section ID is invalid — and the depth>2 truncation warning lives in the schema, not the prose.

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 prerequisite 'après avoir identifié des sections via rechercher_codes_via_search' is repeated three times across the intro, the QUAND UTILISER block and a final UTILISATION paragraph that restates the intro verbatim. The useful content is front-loaded, but roughly a third of the text is redundant.

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 does the needed work of saying what comes back: subsections, all articles in a section and their relations. Only the truncation/pagination behavior on very large sections is left implicit, which is a minor gap for a read-only explorer.

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%, including a detailed enumeration of the 'profondeur' levels and ID format examples, so the schema carries the parameter burden. The description only loosely gestures at 'jusqu'à la profondeur spécifiée' and adds no syntax, format or precedence rules (e.g. how 'section_id' and 'section_ids' interact) beyond what is already structured.

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 and resource ('explore en profondeur les sections spécifiques d'un code') and makes the workflow relation to 'rechercher_codes_via_search' explicit, so the agent can distinguish this drill-down tool from the search tool that produces section IDs.

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?

The 'QUAND UTILISER' block gives four concrete triggers and a prerequisite ('APRÈS rechercher_codes_via_search'), which is strong routing guidance. It never states when NOT to use it or which sibling handles a single known article instead of a section, so it stops short of full when/when-not coverage.

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.

Resources