Skip to main content
Glama

Rechercher dans la doctrine fiscale (BOFiP-Impôts)

rechercher_bofip
Read-onlyIdempotent

Recherche la doctrine fiscale pertinente dans le BOFiP-Impôts : commentaires, plan de classement, ou les deux (scope).

Renvoie les documents et passages trouvés. Les passages document et plan donnent chunk_id et fragment (chunk:<source>:<id>), pour les ouvrir ensuite avec lire_bofip ; les passages legacy servent d’orientation et ne s’ouvrent pas par passage.

Bon usage :

  • Démarrer ici pour repérer les documents et passages pertinents, puis ouvrir le passage retenu avec lire_bofip (identifiant et chunk_id ou fragment).

  • Cet outil ne renvoie pas de source_refs citables : un résultat de recherche ne vaut pas lecture du document. La citation vient de lire_bofip (ou explorer_plan_bofip).

  • Pour raisonner à une date, passer valid_on. Pour une veille des nouveautés depuis une date, utiliser rechercher_nouveautes_bofip.

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": "<query>"
    },
    "name": "rechercher_bofip"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNombre maximal de résultats (30 au plus).
queryYesTexte de recherche : une requête courte (quelques mots-clés).
scopeNoPérimètre : `documents` (commentaires), `plan` (plan de classement) ou `all` (les deux, par défaut).all
seriesNoFiltre par séries BOFiP, séparées par des virgules. Valeurs : AIS, Autre, BA, BIC, BNC, CAD, CF, CTX, CVAE, DAE, DJC, ENR, IF, IMG, INT, IR, IS, PAT, REC, RES, RFPI, RPPM, RSA, SJ, TCA, TCAS, TFP, TPS, TVA.
valid_onNoDate d’opposabilité `YYYY-MM-DD` ; vide : doctrine en vigueur.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.4/5.0
Behavior3/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 structurally. The description nevertheless adds genuinely non-obvious behavior: the tool returns no citable `source_refs`, a search hit is not equivalent to reading the document, and `legacy` passages serve only for orientation and cannot be opened per-passage. These are real behavioral quirks beyond the annotations, though return shape details (ordering, snippets) remain unspecified.

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?

Front-loaded purpose sentence, then a compact bulleted « Bon usage » block with each bullet carrying one distinct rule (workflow, citation caveat, date/novelty routing). No filler or repetition of schema content.

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 five parameters, no output schema, and a follow-up dependency on another tool, the description covers the return structure at a high level (documents and passages, `chunk_id`/`fragment` format) and the citation limitation. Minor gaps remain: nothing about result ordering/relevance, pagination beyond `limit`, or what a `legacy` passage looks like, but nothing essential to calling it correctly is missing.

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 description coverage is 100%, so the enum values, the 30-result cap and the `YYYY-MM-DD` pattern are already documented; a baseline of 3 applies. The description adds interpretive value by tying `valid_on` to a use case (« Pour raisonner à une date ») and by explaining that `chunk_id`/`fragment` values returned are the inputs needed for the follow-up call, which the schema alone does not convey.

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 names a specific verb (Recherche) and resource (la doctrine fiscale ... dans le BOFiP-Impôts), then enumerates the searchable sub-corpora (commentaires, plan de classement, les deux via `scope`). This makes it immediately distinguishable from siblings such as rechercher_nouveautes_bofip (novelty watch) and lire_bofip (document reading), which it explicitly routes to.

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?

A dedicated « Bon usage » section gives explicit when-to-use guidance: start here to locate documents and passages, then open the chosen passage with lire_bofip using `identifiant` and `chunk_id`/`fragment`. It also states when to use an alternative (« Pour une veille des nouveautés depuis une date, utiliser rechercher_nouveautes_bofip ») and supplies the condition (date-based reasoning → `valid_on`).

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