Skip to main content
Glama

Rechercher dans les programmes

rechercher
Read-onlyIdempotent

Recherche plein texte dans les mesures de tous les programmes disponibles (ou de certains). Mots-clés en français, ex. « retraite 60 ans », « SMIC », « nucléaire ». Résultats regroupés par candidat avec emplacement et lien officiel.

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": {
      "requete": "<requete>"
    },
    "name": "rechercher"
  }
}

Input Schema

NameRequiredDescriptionDefault
requeteYesMots-clés à chercher
programmesNoLimiter à certains programmes (par défaut : tous)
limite_par_programmeNoRésultats max par programme (défaut 8)
mesures_cles_uniquementNoNe renvoyer que les mesures clés

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / programmes / items / description
      Previous value: -"Identifiant du programme : attal = Gabriel Attal (Renaissance) ; lfi = Jean-Luc Mélenchon (La France insoumise) ; philippe = Édouard Philippe (Horizons) ; retailleau = Bruno Retailleau (Les Républicains) ; tondelier = Marine Tondelier (Les Écologistes)"New value: +"Identifiant du programme : attal = Gabriel Attal (Renaissance) ; branco = Juan Branco (Les Ruches) ; lfi = Jean-Luc Mélenchon (La France insoumise) ; philippe = Édouard Philippe (Horizons) ; retailleau = Bruno Retailleau (Les Républicains) ; tondelier = Marine Tondelier (Les Écologistes)"
    • changedInput schema / properties / programmes / items / enum
      Previous value: -[
      -  "attal",
      -  "lfi",
      -  "philippe",
      -  "retailleau",
      -  "tondelier"
      -]New value: +[
      +  "attal",
      +  "branco",
      +  "lfi",
      +  "philippe",
      +  "retailleau",
      +  "tondelier"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / programmes / items / description
      Previous value: -"Identifiant du programme : attal = Gabriel Attal (Renaissance) ; lfi = Jean-Luc Mélenchon (La France insoumise) ; philippe = Édouard Philippe (Horizons) ; retailleau = Bruno Retailleau (Les Républicains)"New value: +"Identifiant du programme : attal = Gabriel Attal (Renaissance) ; lfi = Jean-Luc Mélenchon (La France insoumise) ; philippe = Édouard Philippe (Horizons) ; retailleau = Bruno Retailleau (Les Républicains) ; tondelier = Marine Tondelier (Les Écologistes)"
    • changedInput schema / properties / programmes / items / enum
      Previous value: -[
      -  "attal",
      -  "lfi",
      -  "philippe",
      -  "retailleau"
      -]New value: +[
      +  "attal",
      +  "lfi",
      +  "philippe",
      +  "retailleau",
      +  "tondelier"
      +]
  3. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety needs no restating. The description adds genuinely new context: results are grouped by candidate and include a location and an official link, which tells the agent the shape of the response and its traceability. It does not mention result-count ceilings beyond the per-program limit, but that is minor.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the operation and scope, followed by query examples and the return shape. No filler and nothing repeated from the schema's own field descriptions.

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 usefully explains that results are grouped per candidate with location and official link, and the schema fully documents the four inputs. An agent has what it needs to call and interpret the tool; only the routing guidance against sibling search/browse tools is thin.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description earns more by giving concrete query examples in French (« retraite 60 ans », « SMIC », « nucléaire »), which guides how to phrase the required 'requete' beyond the schema's 'Mots-clés à chercher'. The other three parameters are left entirely to the schema.

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?

States a specific verb and resource: full-text search over measures of all (or some) programs. The scope 'tous les programmes disponibles (ou de certains)' plus the note that results are grouped by candidate makes the operation concrete. It does not explicitly name how it differs from the sibling 'search' or 'mesures_cles', so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied: keyword lookup with French example queries suggests when full-text search is appropriate. There is no explicit when-not guidance and no named alternative (e.g. use 'mesures_cles' or 'lire_mesures' for browsing), leaving the agent to infer routing from sibling names alone.

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.