Skip to main content
Glama
cmendezs

mcp-facture-electronique-fr

create_routing_code

Creates a routing code for an establishment. Initiates a two-step process: first call generates a confirmation token, second call confirms the creation.

Instructions

Create a routing code (POST /code-routage).

HUMAN-IN-THE-LOOP: Requires user confirmation. Call without confirmation_token first, show the summary to the user, then call again with the token.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
siretYesEstablishment SIRET (14 digits) this routing code belongs to.
confirmation_tokenNoConfirmation token from a previous call. Omit on the first call.
etat_administratifNo'A' (active) or 'F' (closed).A
identifiant_routageYesRouting-code identifier to create (max 100 chars, pattern [-_/@a-zA-Z0-9]).
libelle_code_routageYesHuman-readable label for the routing code.
nature_etablissementYesWhether the establishment is private or public.
type_identifiant_routageYes4-digit type code for the routing-code identifier (typeIdentifiantRoutage).
gestion_engagement_juridiqueNoWhether a legal-commitment number (engagement juridique) is mandatory.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Discloses the key behavioral trait (human-in-the-loop requirement) and the two-step invocation pattern. However, does not mention side effects, permissions, or the fact that the first call returns a confirmation token (though implied).

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?

Extremely concise: two sentences plus a procedural note. Purpose is front-loaded, and every sentence adds value. No fluff.

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?

Covers the critical human-in-the-loop workflow. The output schema exists, so return values need not be in the description. Could mention that creation is immediate or provide error handling hints, but overall sufficient for a tool with 8 parameters and a two-step process.

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%, so the schema fully documents parameters. The description adds value only for the confirmation_token parameter in terms of usage, not semantics. 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?

Clearly states 'Create a routing code' with the HTTP method, distinguishing it from sibling tools like update_routing_code and replace_routing_code.

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?

Explicitly describes the two-step human-in-the-loop process: call without confirmation_token, show summary, then call with token. This provides clear, actionable usage instructions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cmendezs/mcp-facture-electronique-fr'

If you have feedback or need assistance with the MCP directory API, please join our Discord server