Skip to main content
Glama

Rechercher dans des conventions collectives (Légifrance)

rechercher_textes_collectifs_via_search
Read-onlyIdempotent

Recherche ciblée dans des conventions collectives KALI déjà identifiées.

A quoi il sert concrètement:

  • une fois la bonne convention identifiée, tester plusieurs formulations d'une même question dans un périmètre KALITEXT précis

  • combiner des requêtes exactes, de proximité et larges dans ce périmètre

Capacités principales:

  • Recherche progressive (exact -> proximite -> large) dans un scope KALITEXT précis.

  • Recherche live ciblée sur les conventions sélectionnées via /consult/kaliText.

  • Retourne des résultats citables (id, type, url, citation_normale) au format compact.

Workflow obligatoire:

  1. Découvrir les conventions pertinentes avec trouver_convention_collective (à partir du nom de la convention).

  2. Réinjecter les KALITEXT... dans kali_text_ids_cibles.

  3. Appeler ce tool pour la recherche ciblée.

Important:

  • Le scope kali_text_ids_cibles est obligatoire.

  • Ce tool est pensé pour un ou quelques KALITEXT déjà résolus, pas pour explorer tout KALI sans ciblage préalable.

  • Scope fonctionnel : accords de branche et conventions collectives (KALI).

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": "rechercher_textes_collectifs_via_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
idccNo
mode_etatsNovigueur
fonds_ciblesNo
champs_ciblesNo
recherches_largesNo
recherches_exactesNo
kali_text_ids_ciblesNo
recherches_proximiteNo
max_resultats_par_niveauNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real behavior beyond that: progressive exact -> proximité -> large search within a scope, live targeting via /consult/kaliText, and citable compact results (id, type, url, citation_normale). It does not explain how results from the three levels are combined or ordered.

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?

Well front-loaded with labelled blocks (A quoi il sert, Capacités, Workflow, Important) so an agent can scan quickly. Slightly repetitive — the opening sentence and the 'Important' section both restate that the scope must be pre-targeted — but no sentence is truly wasteful.

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

Completeness3/5

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

The workflow and output shape are adequately described for a read-only tool with no output schema, but with 9 parameters at 0% schema coverage the description should also cover the filters (idcc, mode_etats, fonds_cibles, champs_cibles) and result capping. As written, an agent can start the mandatory path but cannot configure a search precisely.

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

Parameters2/5

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

Schema description coverage is 0% across 9 parameters, so the description carries the full burden. It clarifies only `kali_text_ids_cibles` (and claims it is mandatory, though the schema marks no required fields) and implicitly maps the three search strategies to the exact/proximité/large arrays; `idcc`, `mode_etats`, `fonds_cibles`, `champs_cibles` and `max_resultats_par_niveau` are left entirely unexplained.

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 ('Recherche ciblée dans des conventions collectives KALI déjà identifiées') and immediately bounds the scope to a precise KALITEXT perimeter. The 'Important' block explicitly separates it from exploration of all KALI, which is what sibling tools like trouver_convention_collective do.

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 a numbered three-step workflow: discover conventions with `trouver_convention_collective`, reinject the `KALITEXT...` ids into `kali_text_ids_cibles`, then call this tool. It also states the negative case ('pas pour explorer tout KALI sans ciblage préalable') and the intended granularity ('un ou quelques KALITEXT déjà résolus'), leaving little to inference.

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