Skip to main content
Glama

validate_siret

Read-onlyIdempotent

Validates a French SIRET (Système d'Identification du Répertoire des Établissements) number using the official Luhn algorithm. SIRET is a 14-digit number — the first 9 digits are the SIREN (company identifier) and the last 5 digits identify the specific establishment. Returns { valid: boolean, siren: string, establishment: string, siret: string }. Use when processing French invoices (factures), validating supplier registrations, or any B2B transaction requiring a verified French business establishment identifier. Handles the La Poste special case automatically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
siretYes14-digit French SIRET, with or without spaces/dashes. Example: '732 829 320 00074' or '73282932000074'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / siret / description
      Previous value: -"14-digit French SIRET, with or without spaces/dashes. Example: '732 829 320 00074'"New value: +"14-digit French SIRET, with or without spaces/dashes. Example: '732 829 320 00074' or '73282932000074'"
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "establishment": {
      -      "type": "string"
      -    },
      -    "reason": {
      -      "type": "string"
      -    },
      -    "siren": {
      -      "type": "string"
      -    },
      -    "siret": {
      -      "type": "string"
      -    },
      -    "valid": {
      -      "type": "boolean"
      -    }
      -  },
      -  "required": [
      -    "valid"
      -  ],
      -  "type": "object"
      -}New value: +null
  2. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / siret / description
      Previous value: -"14-digit French SIRET, with or without spaces/dashes. Example: '732 829 320 00074' or '73282932000074'"New value: +"14-digit French SIRET, with or without spaces/dashes. Example: '732 829 320 00074'"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "establishment": {
      +      "type": "string"
      +    },
      +    "reason": {
      +      "type": "string"
      +    },
      +    "siren": {
      +      "type": "string"
      +    },
      +    "siret": {
      +      "type": "string"
      +    },
      +    "valid": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "valid"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / siret / description
      Previous value: -"The French SIRET to validate. Spaces and dashes are automatically removed. Example: '732 829 320 00074' or '73282932000074'"New value: +"14-digit French SIRET, with or without spaces/dashes. Example: '732 829 320 00074' or '73282932000074'"
  4. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already provide readOnly and idempotent hints; the description adds valuable behavioral details including the Luhn algorithm, automatic La Poste special case handling, input tolerance for spaces/dashes, and the exact return object shape. This exceeds what annotations convey.

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?

Five sentences, each conveying a distinct piece of information (purpose, structure, return value, use cases, special case) with no redundancy or filler. The most critical information is front-loaded.

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

Completeness5/5

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

The description covers purpose, input format, output structure, algorithm, special case, and appropriate usage contexts. Despite lacking an output schema, the return value is explicitly described, making the tool fully self-contained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although the schema already fully describes the single parameter with an example, the description adds semantic meaning by breaking down the SIRET into SIREN and establishment parts, enriching the understanding of what the parameter represents.

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 clearly states the tool validates a French SIRET number using the official Luhn algorithm, which is specific and distinct from sibling validators like validate_iban or validate_nif. It also explains the SIRET structure, further clarifying the resource.

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?

Explicitly lists use cases (French invoices, supplier registrations, B2B transactions) which gives clear context. However, it does not mention when not to use this tool or explicitly reference alternatives among siblings, so it falls short of the highest bar.

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