Skip to main content
Glama

resolve_companies

Read-onlyIdempotent

Rapprochement EN LOT de fiches mal identifiées (CRM, tableur, export CSV) vers leur SIREN.

À utiliser pour une LISTE de sociétés à identifier ("retrouve les SIREN de ces 200 clients"). Pour UNE société cherchée par son nom, search_companies, qui rend des résultats classés ; celui-ci rend une décision, et refuse de trancher quand il n'est pas sûr.

Chaque fiche revient avec un status :

  • resolved : SIREN certain.

  • review : plusieurs candidats plausibles ou nom trop générique ; les candidats sont retournés et le choix revient à l'utilisateur.

  • no_match : aucune correspondance.

reason explique un review : ambiguous_candidates, weak_name_overlap, shared_domain (site partagé par un réseau ; domain_company_count dit combien de sociétés, fournir un nom ou un code postal), missing_name, invalid_domain, domain_no_match, lookup_failed (panne à rejouer, PAS une absence de correspondance).

Conseils : domain (domaine ou URL) résout seul quand il désigne une seule société. Le code postal double quasiment le taux de rapprochement. Un mot en trop dans le nom ("Carrefour Massy") nuit plus qu'un nom tronqué. Un siren, siret ou numéro de TVA français est résolu sans recherche.

COÛT en crédits : 0 (limite par minute seule) ; au quota : 1 unité par société distincte fournie (records[].siren) ou résolue.

Retourne results[] (ordre d'entrée, avec l'id fourni) et summary{total, resolved, review, no_match}.

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": {
      "records": "<records>"
    },
    "name": "resolve_companies"
  }
}

Input Schema

NameRequiredDescriptionDefault
recordsYesFiches à rapprocher, 200 maximum par appel
shared_domainNoDomaine porté par plusieurs sociétés : review (défaut) rend les candidats ; head rapproche vers la maison mère (groupe dominant, sinon plus gros CA), method=domain_head, confiance basse. Réserver aux colonnes d'enseignes.

Output Schema

NameRequiredDescriptionDefault
_accessNo
resultsYes
summaryYes
_user_planNo
_quota_remaining_monthNo
_quota_remaining_todayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedOutput schema / properties / _credits_remaining
      Removed value: -{
      -  "type": "number"
      -}
  2. Changed2 schema fields changed
    • addedOutput schema / properties / _access / properties / companies_remaining_30d
      Added value: +{
      +  "type": "number"
      +}
    • removedOutput schema / properties / _access / properties / companies_remaining_7d
      Removed value: -{
      -  "type": "number"
      -}
  3. Changed1 schema field changed
    • addedOutput schema / properties / _access
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "companies_remaining_24h": {
      +      "type": "number"
      +    },
      +    "companies_remaining_7d": {
      +      "type": "number"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "mode": {
      +      "description": "normal | slowed",
      +      "type": "string"
      +    },
      +    "search_rows_remaining_24h": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "mode"
      +  ],
      +  "type": "object"
      +}
  4. Changed7 schema fields changed
    • changedInput schema / properties / records / description
      Previous value: -"Fiches a rapprocher, 200 maximum par appel"New value: +"Fiches à rapprocher, 200 maximum par appel"
    • changedInput schema / properties / records / items / properties / domain / description
      Previous value: -"Site web de la societe, en domaine nu ou en URL complete. Tranche mieux qu'un nom quand il est connu."New value: +"Site web de la société, en domaine nu ou en URL complète. Tranche mieux qu'un nom quand il est connu."
    • changedInput schema / properties / records / items / properties / id / description
      Previous value: -"Identifiant libre renvoye tel quel, pour recoller le resultat a la ligne d'origine. Jamais utilise pour le rapprochement."New value: +"Identifiant libre renvoyé tel quel, pour recoller le résultat à la ligne d'origine. Jamais utilisé pour le rapprochement."
    • changedInput schema / properties / records / items / properties / name / description
      Previous value: -"Denomination telle qu'elle figure dans la fiche"New value: +"Dénomination telle qu'elle figure dans la fiche"
    • changedInput schema / properties / records / items / properties / postal_code / description
      Previous value: -"Code postal. Le signal le plus utile apres un identifiant."New value: +"Code postal. Le signal le plus utile après un identifiant."
    • changedInput schema / properties / records / items / properties / vat / description
      Previous value: -"Numero de TVA intracommunautaire francais (FRxx...)"New value: +"Numéro de TVA intracommunautaire français (FRxx...)"
    • changedInput schema / properties / shared_domain / description
      Previous value: -"Domaine porte par plusieurs societes : review (defaut) rend les candidats ; head rapproche vers la maison mere (groupe dominant, sinon plus gros CA), method=domain_head, confiance basse. Reserver aux colonnes d'enseignes."New value: +"Domaine porté par plusieurs sociétés : review (défaut) rend les candidats ; head rapproche vers la maison mère (groupe dominant, sinon plus gros CA), method=domain_head, confiance basse. Réserver aux colonnes d'enseignes."
  5. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / llm_model
      Removed value: -{
      -  "description": "The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. \"claude-opus-4-8\", \"gpt-5.2\"). Used for analytics only. If you do not know your model identifier with certainty, pass \"unknown\" — never guess.",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "records",
      -  "llm_model"
      -]New value: +[
      +  "records"
      +]
  6. Changed3 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. \"claude-opus-4-8\", \"gpt-5.2\"). Used for analytics only. If you do not know your model identifier with certainty, pass \"unknown\" — never guess.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "records"
      -]New value: +[
      +  "records",
      +  "llm_model"
      +]
  7. Changed3 schema fields changed
    • addedInput schema / properties / records / items / properties / domain
      Added value: +{
      +  "description": "Site web de la societe, en domaine nu ou en URL complete. Tranche mieux qu'un nom quand il est connu.",
      +  "maxLength": 253,
      +  "type": "string"
      +}
    • addedInput schema / properties / shared_domain
      Added value: +{
      +  "description": "Domaine porte par plusieurs societes : review (defaut) rend les candidats ; head rapproche vers la maison mere (groupe dominant, sinon plus gros CA), method=domain_head, confiance basse. Reserver aux colonnes d'enseignes.",
      +  "enum": [
      +    "review",
      +    "head"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / _credits_remaining
      Added value: +{
      +  "type": "number"
      +}
  8. Changed3 schema fields changed
    • removedInput schema / properties / records / items / properties / domain
      Removed value: -{
      -  "description": "Site web de la societe, en domaine nu ou en URL complete. Tranche mieux qu'un nom quand il est connu.",
      -  "maxLength": 253,
      -  "type": "string"
      -}
    • removedInput schema / properties / shared_domain
      Removed value: -{
      -  "description": "Domaine porte par plusieurs societes : review (defaut) rend les candidats ; head rapproche vers la maison mere (groupe dominant, sinon plus gros CA), method=domain_head, confiance basse. Reserver aux colonnes d'enseignes.",
      -  "enum": [
      -    "review",
      -    "head"
      -  ],
      -  "type": "string"
      -}
    • removedOutput schema / properties / _credits_remaining
      Removed value: -{
      -  "type": "number"
      -}
  9. Changed3 schema fields changed
    • addedInput schema / properties / records / items / properties / domain
      Added value: +{
      +  "description": "Site web de la societe, en domaine nu ou en URL complete. Tranche mieux qu'un nom quand il est connu.",
      +  "maxLength": 253,
      +  "type": "string"
      +}
    • addedInput schema / properties / shared_domain
      Added value: +{
      +  "description": "Domaine porte par plusieurs societes : review (defaut) rend les candidats ; head rapproche vers la maison mere (groupe dominant, sinon plus gros CA), method=domain_head, confiance basse. Reserver aux colonnes d'enseignes.",
      +  "enum": [
      +    "review",
      +    "head"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / _credits_remaining
      Added value: +{
      +  "type": "number"
      +}
  10. Changed3 schema fields changed
    • removedInput schema / properties / records / items / properties / domain
      Removed value: -{
      -  "description": "Site web de la societe, en domaine nu ou en URL complete. Tranche mieux qu'un nom quand il est connu.",
      -  "maxLength": 253,
      -  "type": "string"
      -}
    • removedInput schema / properties / shared_domain
      Removed value: -{
      -  "description": "Domaine porte par plusieurs societes : review (defaut) rend les candidats ; head rapproche vers la maison mere (groupe dominant, sinon plus gros CA), method=domain_head, confiance basse. Reserver aux colonnes d'enseignes.",
      -  "enum": [
      -    "review",
      -    "head"
      -  ],
      -  "type": "string"
      -}
    • removedOutput schema / properties / _credits_remaining
      Removed value: -{
      -  "type": "number"
      -}
  11. Changed3 schema fields changed
    • addedInput schema / properties / records / items / properties / domain
      Added value: +{
      +  "description": "Site web de la societe, en domaine nu ou en URL complete. Tranche mieux qu'un nom quand il est connu.",
      +  "maxLength": 253,
      +  "type": "string"
      +}
    • addedInput schema / properties / shared_domain
      Added value: +{
      +  "description": "Domaine porte par plusieurs societes : review (defaut) rend les candidats ; head rapproche vers la maison mere (groupe dominant, sinon plus gros CA), method=domain_head, confiance basse. Reserver aux colonnes d'enseignes.",
      +  "enum": [
      +    "review",
      +    "head"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / _credits_remaining
      Added value: +{
      +  "type": "number"
      +}
  12. Changed3 schema fields changed
    • removedInput schema / properties / records / items / properties / domain
      Removed value: -{
      -  "description": "Site web de la societe, en domaine nu ou en URL complete. Tranche mieux qu'un nom quand il est connu.",
      -  "maxLength": 253,
      -  "type": "string"
      -}
    • removedInput schema / properties / shared_domain
      Removed value: -{
      -  "description": "Domaine porte par plusieurs societes : review (defaut) rend les candidats ; head rapproche vers la maison mere (groupe dominant, sinon plus gros CA), method=domain_head, confiance basse. Reserver aux colonnes d'enseignes.",
      -  "enum": [
      -    "review",
      -    "head"
      -  ],
      -  "type": "string"
      -}
    • removedOutput schema / properties / _credits_remaining
      Removed value: -{
      -  "type": "number"
      -}
  13. Changed3 schema fields changed
    • addedInput schema / properties / records / items / properties / domain
      Added value: +{
      +  "description": "Site web de la societe, en domaine nu ou en URL complete. Tranche mieux qu'un nom quand il est connu.",
      +  "maxLength": 253,
      +  "type": "string"
      +}
    • addedInput schema / properties / shared_domain
      Added value: +{
      +  "description": "Domaine porte par plusieurs societes : review (defaut) rend les candidats ; head rapproche vers la maison mere (groupe dominant, sinon plus gros CA), method=domain_head, confiance basse. Reserver aux colonnes d'enseignes.",
      +  "enum": [
      +    "review",
      +    "head"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / _credits_remaining
      Added value: +{
      +  "type": "number"
      +}
  14. Changed3 schema fields changed
    • removedInput schema / properties / records / items / properties / domain
      Removed value: -{
      -  "description": "Site web de la societe, en domaine nu ou en URL complete. Tranche mieux qu'un nom quand il est connu.",
      -  "maxLength": 253,
      -  "type": "string"
      -}
    • removedInput schema / properties / shared_domain
      Removed value: -{
      -  "description": "Domaine porte par plusieurs societes : review (defaut) rend les candidats ; head rapproche vers la maison mere (groupe dominant, sinon plus gros CA), method=domain_head, confiance basse. Reserver aux colonnes d'enseignes.",
      -  "enum": [
      -    "review",
      -    "head"
      -  ],
      -  "type": "string"
      -}
    • removedOutput schema / properties / _credits_remaining
      Removed value: -{
      -  "type": "number"
      -}
  15. Changed3 schema fields changed
    • addedInput schema / properties / records / items / properties / domain
      Added value: +{
      +  "description": "Site web de la societe, en domaine nu ou en URL complete. Tranche mieux qu'un nom quand il est connu.",
      +  "maxLength": 253,
      +  "type": "string"
      +}
    • addedInput schema / properties / shared_domain
      Added value: +{
      +  "description": "Domaine porte par plusieurs societes : review (defaut) rend les candidats ; head rapproche vers la maison mere (groupe dominant, sinon plus gros CA), method=domain_head, confiance basse. Reserver aux colonnes d'enseignes.",
      +  "enum": [
      +    "review",
      +    "head"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / _credits_remaining
      Added value: +{
      +  "type": "number"
      +}
  16. Changed3 schema fields changed
    • removedInput schema / properties / records / items / properties / domain
      Removed value: -{
      -  "description": "Site web de la societe, en domaine nu ou en URL complete. Tranche mieux qu'un nom quand il est connu.",
      -  "maxLength": 253,
      -  "type": "string"
      -}
    • removedInput schema / properties / shared_domain
      Removed value: -{
      -  "description": "Domaine porte par plusieurs societes : review (defaut) rend les candidats ; head rapproche vers la maison mere (groupe dominant, sinon plus gros CA), method=domain_head, confiance basse. Reserver aux colonnes d'enseignes.",
      -  "enum": [
      -    "review",
      -    "head"
      -  ],
      -  "type": "string"
      -}
    • removedOutput schema / properties / _credits_remaining
      Removed value: -{
      -  "type": "number"
      -}
  17. Changed3 schema fields changed
    • addedInput schema / properties / records / items / properties / domain
      Added value: +{
      +  "description": "Site web de la societe, en domaine nu ou en URL complete. Tranche mieux qu'un nom quand il est connu.",
      +  "maxLength": 253,
      +  "type": "string"
      +}
    • addedInput schema / properties / shared_domain
      Added value: +{
      +  "description": "Domaine porte par plusieurs societes : review (defaut) rend les candidats ; head rapproche vers la maison mere (groupe dominant, sinon plus gros CA), method=domain_head, confiance basse. Reserver aux colonnes d'enseignes.",
      +  "enum": [
      +    "review",
      +    "head"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / _credits_remaining
      Added value: +{
      +  "type": "number"
      +}
  18. Changed3 schema fields changed
    • removedInput schema / properties / records / items / properties / domain
      Removed value: -{
      -  "description": "Site web de la societe, en domaine nu ou en URL complete. Tranche mieux qu'un nom quand il est connu.",
      -  "maxLength": 253,
      -  "type": "string"
      -}
    • removedInput schema / properties / shared_domain
      Removed value: -{
      -  "description": "Domaine porte par plusieurs societes : review (defaut) rend les candidats ; head rapproche vers la maison mere (groupe dominant, sinon plus gros CA), method=domain_head, confiance basse. Reserver aux colonnes d'enseignes.",
      -  "enum": [
      -    "review",
      -    "head"
      -  ],
      -  "type": "string"
      -}
    • removedOutput schema / properties / _credits_remaining
      Removed value: -{
      -  "type": "number"
      -}
  19. Changed1 schema field changed
    • addedInput schema / properties / shared_domain
      Added value: +{
      +  "description": "Domaine porte par plusieurs societes : review (defaut) rend les candidats ; head rapproche vers la maison mere (groupe dominant, sinon plus gros CA), method=domain_head, confiance basse. Reserver aux colonnes d'enseignes.",
      +  "enum": [
      +    "review",
      +    "head"
      +  ],
      +  "type": "string"
      +}
  20. Changed1 schema field changed
    • addedInput schema / properties / records / items / properties / domain
      Added value: +{
      +  "description": "Site web de la societe, en domaine nu ou en URL complete. Tranche mieux qu'un nom quand il est connu.",
      +  "maxLength": 253,
      +  "type": "string"
      +}
  21. Changed1 schema field changed
    • addedOutput schema / properties / _credits_remaining
      Added value: +{
      +  "type": "number"
      +}
  22. Changed3 schema fields changed
    • changedOutput schema / properties / results / items / additionalProperties
      Previous value: -falseNew value: +{}
    • changedOutput schema / properties / results / items / properties / candidates / items / additionalProperties
      Previous value: -falseNew value: +{}
    • changedOutput schema / properties / summary / additionalProperties
      Previous value: -falseNew value: +{}
  23. Changed1 schema field changed
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +{}
  24. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / context
      Removed value: -{
      -  "description": "Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): \"Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization.\"",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "records",
      -  "context"
      -]New value: +[
      +  "records"
      +]
  25. Changed3 schema fields changed
    • addedOutput schema / properties / _quota_remaining_month
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / _quota_remaining_today
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / _user_plan
      Added value: +{
      +  "type": "string"
      +}
  26. Changed3 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): \"Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization.\"",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "records"
      -]New value: +[
      +  "records",
      +  "context"
      +]
  27. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed world), yet the description adds substantial behavior beyond them: the three-way status decision model, the deliberate refusal to decide under ambiguity, the enumerated reason codes with the important caveat that lookup_failed is a transient outage rather than a no-match, and the credit/quota model.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and the sibling contrast, then bulleted status/reason blocks and a tips line — well structured and scannable. It runs long for a two-parameter tool and re-enumerates status and reason values that the output schema already provides, so a few lines are redundant rather than load-bearing.

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?

For a batch resolver with a decision model and quota implications, the definition covers what an agent needs to call it correctly and interpret the response: input limits (200 max), result ordering and id passthrough, summary counts, and the failure-vs-no-match distinction. The output schema carries the return shape, so the description need not repeat it further.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real interpretation: identifiers (siren/siret/vat) resolve without any search, domain resolves alone when it maps to one company, and shared_domain's head mode is explained as parent-company matching with low confidence, reserved for store-brand columns. Most of these tips are also restated in the schema, which trims the marginal value slightly, but the shared_domain semantics are genuinely new.

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 states a specific operation on a specific resource: batch matching poorly identified company records to their SIREN. It explicitly contrasts itself with the sibling search_companies (ranked results vs. a single decision, with refusal when unsure), so an agent can distinguish the two without opening either schema.

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?

It names the trigger precisely ("une LISTE de sociétés", example of 200 clients) and the alternative with its selection condition ("Pour UNE société cherchée par son nom, search_companies"). It adds actionable tips (domain alone resolves single-company domains, postal code nearly doubles the match rate, extra words in the name hurt) and clarifies cost/rate-limit behavior.

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