Skip to main content
Glama

watch_company

Idempotent

Mise sous surveillance d'une société : l'ajoute à une liste de veille de l'utilisateur, visible dans l'app Insourcia (page /lists).

Utiliser cet outil quand l'utilisateur veut SUIVRE une société dans le temps (cible d'acquisition, concurrent, client, fournisseur à risque) - pas pour une simple consultation (utiliser get_company).

Fonctionnement :

  • list_name désigne la liste cible ; la liste "Surveillance" est utilisée par défaut et créée automatiquement si besoin (idem pour toute liste nommée qui n'existe pas encore).

  • Idempotent : si la société est déjà dans la liste, l'appel renvoie already_watched=true sans créer de doublon.

  • Alerte quotidienne ACTIVE PAR DÉFAUT quand la liste est créée par cet appel (enable_alert=false pour s'en passer ; sur une liste existante, enable_alert=true l'active) : l'utilisateur est notifié des événements FUTURS touchant les sociétés de la liste (annonces BODACC : procédures collectives, cessions...) ; dirigeants : option à cocher dans l'app. Pas de replay de l'historique.

  • Coût : abonnement, 0,1 crédit par société et par mois, débité à l'ajout (insufficient_credits : rien n'est ajouté) ; sans abonnement, non débité. Garde-fou technique : watch_limit_reached à 1 000 000 sociétés par organisation.

Réponse : { siren, company_name (ou null), list_id, list_name, url (page /lists), already_watched, already_watched_by, alert_enabled }.

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": {
      "siren": "<siren>"
    },
    "name": "watch_company"
  }
}

Input Schema

NameRequiredDescriptionDefault
sirenYesSIREN a 9 chiffres de la société à surveiller
list_nameNoNom de la liste cible (1-100 caractères). Par défaut : "Surveillance". La liste est créée automatiquement si elle n'existe pas.
enable_alertNoAlerte quotidienne sur les événements futurs (BODACC, comptes...) des sociétés de la liste. Par défaut : true si la liste est créée par cet appel, inchangé sinon.

Output Schema

NameRequiredDescriptionDefault
urlYes
sirenYes
list_idYes
list_nameYes
company_nameYes
alert_enabledYes
already_watchedYes
already_watched_byNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / enable_alert / description
      Previous value: -"Alerte quotidienne sur les événements futurs (BODACC, dirigeants...) des sociétés de la liste. Par défaut : true si la liste est créée par cet appel, inchangé sinon."New value: +"Alerte quotidienne sur les événements futurs (BODACC, comptes...) des sociétés de la liste. Par défaut : true si la liste est créée par cet appel, inchangé sinon."
  2. Changed1 schema field changed
    • addedOutput schema / properties / already_watched_by
      Added value: +{
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "name": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "enum": [
      +          "list",
      +          "saved_search"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  3. Changed3 schema fields changed
    • changedInput schema / properties / enable_alert / description
      Previous value: -"Alerte quotidienne sur les evenements futurs (BODACC, dirigeants...) des societes de la liste. Defaut: true si la liste est creee par cet appel, inchange sinon."New value: +"Alerte quotidienne sur les événements futurs (BODACC, dirigeants...) des sociétés de la liste. Par défaut : true si la liste est créée par cet appel, inchangé sinon."
    • changedInput schema / properties / list_name / description
      Previous value: -"Nom de la liste cible (1-100 caracteres). Defaut: \"Surveillance\". La liste est creee automatiquement si elle n'existe pas."New value: +"Nom de la liste cible (1-100 caractères). Par défaut : \"Surveillance\". La liste est créée automatiquement si elle n'existe pas."
    • changedInput schema / properties / siren / description
      Previous value: -"SIREN a 9 chiffres de la societe a surveiller"New value: +"SIREN a 9 chiffres de la société à surveiller"
  4. 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: -[
      -  "siren",
      -  "llm_model"
      -]New value: +[
      +  "siren"
      +]
  5. Changed1 schema field changed
    • changedInput schema / properties / enable_alert / description
      Previous value: -"true pour etre notifie des evenements futurs (BODACC, dirigeants...) sur les societes de la liste. Defaut: false."New value: +"Alerte quotidienne sur les evenements futurs (BODACC, dirigeants...) des societes de la liste. Defaut: true si la liste est creee par cet appel, inchange sinon."
  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: -[
      -  "siren"
      -]New value: +[
      +  "siren",
      +  "llm_model"
      +]
  7. 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: -[
      -  "siren",
      -  "context"
      -]New value: +[
      +  "siren"
      +]
  8. 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: -[
      -  "siren"
      -]New value: +[
      +  "siren",
      +  "context"
      +]
  9. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations: auto-creation of the named list, default 'Surveillance' list, idempotent already_watched=true without duplicates, daily alert enabled by default only on newly created lists, no historical replay, and a cost of 0.1 credit per company per month with insufficient_credits meaning nothing is added. The only remaining gap is that the 1,000,000-company guard-rail is near-absurd and permission/auth requirements are unstated, but behavior is otherwise unusually well disclosed.

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-loads the purpose and the use/do-not-use rule, then organizes mechanics under a labeled 'Fonctionnement' block with bullets. It runs long and the response field list partly duplicates the output schema, but nearly every sentence carries decision-relevant information.

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 mutating, credit-charging tool with three parameters, the description covers cost, failure modes, idempotency, list auto-creation, and alert defaults. The response shape is restated despite an existing output schema, which is redundant but not a gap.

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

Parameters4/5

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

Schema coverage is already 100%, so the baseline is 3; the description adds real meaning by explaining that list_name defaults to 'Surveillance' and is created if missing, and that enable_alert defaults to true only when the list is created by this call and is left unchanged on an existing list. The siren format itself is left to the schema pattern.

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?

States a specific verb and resource: adds a company to the user's watchlist, visible at /lists. It explicitly contrasts with get_company for simple lookups, so an agent can distinguish it from the read-only siblings without opening schemas.

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?

Gives an explicit when-to-use rule (following a company over time: acquisition target, competitor, client, at-risk supplier) and an explicit when-not-to-use rule routing to get_company. Implicitly the inverse of unwatch_company and complementary to list_watched_companies.

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