Skip to main content
Glama

Watch an activity for new companies

watch_caen
Idempotent

Watch a CAEN activity code, optionally scoped to one county, for newly registered companies. A registration-date cutoff is the baseline: only companies registered after it are reported, and each watchlist poll slides the cutoff forward so each new company surfaces once. A retired CAEN Rev.2 code (6201) also watches its Rev.3 successor (6210), with a warning.

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": {
      "code": "<code>"
    },
    "name": "watch_caen"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesCAEN activity code to watch (e.g. '6210'); a retired Rev.2 code also watches its Rev.3 successor.
countyNoOptional county name to scope the watch to (diacritic-insensitive); omit to watch nationwide.

Output Schema

NameRequiredDescriptionDefault
okNotrue when the watch is in place.
asOfNoWhat to cite: registry (ONRC snapshot date), financialYear (fiscal year of the figures), anaf (day of the ANAF data), snapshot, published, source.
errorNoSet only when there is no answer (empty_query, invalid_cui, data_unavailable, plan_required ...); such a call is not counted.
watchNokind, target, owner (key prefix), county, baseline.
messageNoA sentence for the caller.
warningsNoNotes on how the request was read (a clamped limit, a widened CAEN code, an ignored field).
attributionNoThe credit line to keep when redistributing the data (CC BY 4.0).
alreadyWatchingNotrue when you already held this watch (nothing changed).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / attribution
      Added value: +{
      +  "description": "The credit line to keep when redistributing the data (CC BY 4.0).",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / code / description
      Added value: +"CAEN activity code to watch (e.g. '6210'); a retired Rev.2 code also watches its Rev.3 successor."
    • addedInput schema / properties / county / description
      Added value: +"Optional county name to scope the watch to (diacritic-insensitive); omit to watch nationwide."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "description": "The watch registered (or already held) for the activity code.",
      +  "properties": {
      +    "alreadyWatching": {
      +      "description": "true when you already held this watch (nothing changed).",
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "asOf": {
      +      "description": "What to cite: registry (ONRC snapshot date), financialYear (fiscal year of the figures), anaf (day of the ANAF data), snapshot, published, source.",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "error": {
      +      "description": "Set only when there is no answer (empty_query, invalid_cui, data_unavailable, plan_required ...); such a call is not counted.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "message": {
      +      "description": "A sentence for the caller.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "ok": {
      +      "description": "true when the watch is in place.",
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "warnings": {
      +      "description": "Notes on how the request was read (a clamped limit, a widened CAEN code, an ignored field).",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "watch": {
      +      "description": "kind, target, owner (key prefix), county, baseline.",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: a registration-date baseline, cutoff advancing on each poll, and a guarantee that each new company surfaces exactly once — that dedupe/cursor semantics are the most valuable thing an agent could learn here. It also discloses the Rev.2-to-Rev.3 successor mapping and its warning. Missing are auth/plan requirements and what happens if the same watch is registered twice.

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?

Three tight sentences, front-loaded with the core action and scope before the cursor mechanics and the edge case. Minor cost: 'with a warning' is vague about whether the warning is in the response or an error, and the cutoff sentence is dense on first read.

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?

An output schema exists, so return values need no explanation, and the description covers the stateful/watch semantics that annotations (readOnlyHint=false, idempotentHint=true) can't convey. It stops short of linking to poll_watchlist/list_watches/unwatch, which is what an agent needs to actually use the created watch.

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 both parameters are already fully documented, including the diacritic-insensitivity of county and the successor-code behavior. The description reinforces the successor mapping with a concrete example but adds no new semantics for 'county' or default nationwide behavior.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Watch a CAEN activity code') plus the exact scope of what it reports ('newly registered companies', optional county). The CAEN-code framing distinguishes it implicitly from watch_company and lookup_by_category, though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than prescribed: the description makes clear this is for ongoing discovery of new registrations, not historical lookup, but never says when to prefer it over watch_company or lookup_by_category, nor what to do next (e.g. poll_watchlist).

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