Skip to main content
Glama

Trouver une convention collective par son nom (Légifrance)

trouver_convention_collective
Read-onlyIdempotent

Retrouve la bonne convention collective quand on part d’un nom libre (par exemple « Syntec » ou « hôtels cafés restaurants ») : renvoie des candidats KALITEXT avec leur titre, nature, état, score et lien Légifrance.

Bon usage : identifier ici un ou quelques KALITEXT, puis parcourir la convention avec explorer_convention_collective_detaillee, ou chercher à l’intérieur avec rechercher_textes_collectifs_via_search (kali_text_ids_cibles).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query_nom": "<query_nom>"
    },
    "name": "trouver_convention_collective"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNombre maximal de candidats (50 au plus).
query_nomYesNom libre de la convention ou de l’accord collectif.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.3/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 genuine value beyond that: it discloses that matching is fuzzy/free-name based and returns ranked candidates with score, nature and state rather than a single resolved entity. It does not discuss empty-result or no-match behavior, which keeps it from a 5.

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 the core action and return shape, followed by a clearly delimited 'Bon usage' routing note. Every sentence carries load; the only mild cost is the dense inline backtick notation, which is still readable.

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?

There is no output schema, but the description compensates by enumerating the returned fields and the KALITEXT identifier concept, plus the follow-up tools that consume those ids. For a two-parameter, read-only lookup this is nearly complete; only no-match behavior is unstated.

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%, with both query_nom and limit documented inline, so the schema does the heavy lifting. The description reinforces query_nom's semantics with free-name examples but says nothing about limit or result-count expectations beyond what the schema states, so the 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?

States a specific verb ('Retrouve') and resource ('convention collective') and scopes the input to a free-form name, with concrete examples ('Syntec', 'hôtels cafés restaurants'). It also names the return type (KALITEXT candidates with titre, nature, état, score, lien Légifrance), so an agent can distinguish it from the lire/explorer siblings without opening any schema.

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?

The 'Bon usage' sentence gives an explicit two-step workflow: identify one or a few KALITEXT ids here, then either explore with explorer_convention_collective_detaillee or search inside via rechercher_textes_collectifs_via_search using kali_text_ids_cibles. It names the alternatives and the condition that routes to each, leaving nothing 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