Skip to main content
Glama

Lire un document de la doctrine fiscale (BOFiP-Impôts)

lire_bofip
Read-onlyIdempotent

Ouvre un document précis du BOFiP-Impôts (identifiant BOI, base ou PGP), dans sa version en vigueur ou à une date (valid_on), en entier ou un seul passage (chunk_id ou fragment, renvoyés par rechercher_bofip).

Renvoie le texte du document ou du passage, sa place dans le plan de classement (plan_context) et source_refs, à utiliser pour la citation.

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": {
      "identifiant": "<identifiant>"
    },
    "name": "lire_bofip"
  }
}

Input Schema

NameRequiredDescriptionDefault
chunk_idNoIdentifiant numérique du passage à ouvrir (autre façon de désigner le passage) ; 0 : document entier.
fragmentNoPassage à ouvrir : `chunk:<source>:<id>` (forme ancienne `chunk:<id>` acceptée).
valid_onNoDate d’opposabilité `YYYY-MM-DD` ; vide : doctrine en vigueur.
identifiantYesDocument à ouvrir : identifiant BOI (par exemple BOI-TVA-BASE-10-10), de base ou PGP, tel que renvoyé par rechercher_bofip.
chunk_sourceNoSource du passage (`document` ou `plan`), quand `fragment` est absent ou de la forme `chunk:<id>`.
max_text_charsNoTaille maximale du contenu renvoyé, en caractères ; 0 (par défaut) : contenu entier.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.2/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 the safety profile is covered. The description adds genuinely new behavioural context by declaring the returned payload (document or passage text, `plan_context`, `source_refs` intended for citation), which is valuable given there is no output schema. It does not mention truncation behaviour when `max_text_chars` is set.

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?

Two short paragraphs with zero waste: first the action and its modes, then the return payload and its citation purpose. Front-loaded and scannable, with parameter names in backticks for quick mapping to the schema.

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 six parameters and no output schema, the description covers both the opening semantics and the shape of the result, which is the main gap an agent would otherwise face. Minor omissions remain: how `chunk_source` interacts with the legacy `chunk:<id>` form and what happens when text is truncated by `max_text_chars`.

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%, so the schema already documents every parameter including `valid_on`, `chunk_id`, `fragment` and `max_text_chars`. The description largely restates those same parameters (identifier forms, date, whole vs passage) without adding syntax or precedence rules beyond what the schema says. Baseline 3 is appropriate.

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 ('Ouvre un document précis du BOFiP-Impôts'), enumerates the accepted identifier families (BOI, base, PGP) and the two access modes (whole document or single passage). It also names the sibling 'rechercher_bofip' as the origin of chunk identifiers, so an agent can distinguish this read tool from the search tools without opening the schema.

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?

Implies the intended workflow: passages come from `rechercher_bofip`, and this tool opens them, either in the version in force or at a given opposability date. It does not state explicit exclusions or when to prefer a sibling (e.g. explorer_plan_bofip for browsing the classification plan), so it stops short of full routing guidance.

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