Skip to main content
Glama
cmendezs

mcp-facture-electronique-fr

search_routing_code

Search French electronic invoicing routing codes by SIRET, exact identifier, or partial label. Filter by active status and paginate results to retrieve up to 500 entries.

Instructions

Search routing codes (POST /code-routage/recherche).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
siretNoEstablishment SIRET (14 digits).
limiteNoMaximum number of results (limite).
ignorerNoNumber of results to skip for pagination (ignorer).
etat_administratifNo'A' (active) or 'F' (closed).
identifiant_routageNoExact routing-code identifier (identifiantRoutage).
libelle_code_routageNoRouting code label (partial match).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.7.0
    • addedInput schema / properties / etat_administratif
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "'A' (active) or 'F' (closed)."
      +}
    • addedInput schema / properties / identifiant_routage
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Exact routing-code identifier (identifiantRoutage)."
      +}
    • addedInput schema / properties / ignorer
      Added value: +{
      +  "default": 0,
      +  "description": "Number of results to skip for pagination (ignorer).",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / libelle_code_routage
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Routing code label (partial match)."
      +}
    • removedInput schema / properties / limit
      Removed value: -{
      -  "default": 50,
      -  "description": "Maximum number of results per page (1-500, default 50).",
      -  "maximum": 500,
      -  "minimum": 1,
      -  "type": "integer"
      -}
    • addedInput schema / properties / limite
      Added value: +{
      +  "default": 50,
      +  "description": "Maximum number of results (limite).",
      +  "maximum": 500,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • removedInput schema / properties / routing_code
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Exact routing code value to look up (e.g. 'ACCOUNTS-DEPT', 'REGION-WEST'). Use to verify a routing code exists before referencing it in an invoice."
      -}
    • removedInput schema / properties / siren
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Company SIREN (9 digits). Returns routing codes for all establishments under this company."
      -}
    • changedInput schema / properties / siret / description
      Previous value: -"Establishment SIRET (14 digits). Returns all routing codes associated with this establishment. Most common filter: use when building a directory line for a specific SIRET."New value: +"Establishment SIRET (14 digits)."
  2. Changed4 schema fields changedv0.2.2
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of results (1-500)."New value: +"Maximum number of results per page (1-500, default 50)."
    • changedInput schema / properties / routing_code / description
      Previous value: -"Routing code value to search for (e.g. 'ACCOUNTS-DEPT', 'REGION-WEST')."New value: +"Exact routing code value to look up (e.g. 'ACCOUNTS-DEPT', 'REGION-WEST'). Use to verify a routing code exists before referencing it in an invoice."
    • changedInput schema / properties / siren / description
      Previous value: -"Company SIREN (9 digits)."New value: +"Company SIREN (9 digits). Returns routing codes for all establishments under this company."
    • changedInput schema / properties / siret / description
      Previous value: -"Establishment SIRET (14 digits). Returns all routing codes associated with this establishment."New value: +"Establishment SIRET (14 digits). Returns all routing codes associated with this establishment. Most common filter: use when building a directory line for a specific SIRET."
  3. First observedv0.2.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description must disclose behavioral traits. It only provides the endpoint and action, but does not state that the tool is read-only, whether it requires authentication, or any side effects. The input schema provides parameter details but no behavioral context.

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?

The description is a single sentence that immediately conveys the core action and endpoint. It is concise, front-loaded, and contains no extraneous information.

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

Completeness2/5

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

Despite having an output schema and complete parameter descriptions in the schema, the description is too sparse for a search tool with six optional parameters and pagination. It does not summarize filtering capabilities or expected results, and lacks behavioral context due to absent annotations.

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%, meaning all parameters have descriptions in the schema. The tool description adds no additional parameter information beyond what the schema already provides. Baseline 3 is appropriate.

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?

The description clearly states the verb 'Search' and the resource 'routing codes', and includes the specific HTTP endpoint, distinguishing it from sibling tools like create or get routing codes. However, it lacks elaboration on what routing codes are, which would enhance clarity.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives such as get_routing_code_by_siret_and_code or search_directory_line. The description does not mention use cases, prerequisites, or when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.