get_establishment_by_siret
Look up establishment details, status, and approved platform from the PPF directory by SIRET number to verify the receiving address before sending an invoice.
Instructions
Look up an establishment in the PPF directory by its SIRET number. Essential for verifying the receiving address before sending an invoice. Returns the establishment details, its status, and its Approved Platform.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siret | Yes | Establishment SIRET number (14 digits, no spaces). Example: '12345678900012'. Essential for verifying the receiving address before sending an invoice: confirms the establishment is registered and active in the PPF directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- tools/directory_tools.py:227-247 (handler)MCP tool handler function decorated with @mcp.tool() that calls the directory client's get_establishment_by_siret method. This is the actual entry point executed when the tool is invoked.
@mcp.tool() async def get_establishment_by_siret( siret: Annotated[ str, Field( description=( "Establishment SIRET number (14 digits, no spaces). " "Example: '12345678900012'. " "Essential for verifying the receiving address before sending an invoice: " "confirms the establishment is registered and active in the PPF directory." ) ), ], ) -> dict: """ Look up an establishment in the PPF directory by its SIRET number. Essential for verifying the receiving address before sending an invoice. Returns the establishment details, its status, and its Approved Platform. """ client = get_directory_client() return await client.get_establishment_by_siret(siret=siret) - tools/directory_tools.py:229-239 (schema)Input schema definition for the tool parameter: siret is a required string (14 digits) with a Pydantic Field description providing usage guidance.
siret: Annotated[ str, Field( description=( "Establishment SIRET number (14 digits, no spaces). " "Example: '12345678900012'. " "Essential for verifying the receiving address before sending an invoice: " "confirms the establishment is registered and active in the PPF directory." ) ), ],