Skip to main content
Glama

Check devices for changes

check_changes
Read-onlyIdempotent

Compare stored result and status hashes to identify changed devices, new hashes, and status-change reasons, so only changed devices need a fresh correlation call.

Instructions

Cheap repeat check. For devices you already checked with correlate_devices, send the same vendor, product and version plus the result_hash you kept. Returns which devices changed and their new hash; only changed devices need a fresh correlate_devices call. Also send the status_hash and status_facts you kept: then status_changed lists devices whose known-exploited flags, lifecycle or firmware currency changed with the same findings, and reasons names each change. Use this for repeat checks. Never send host names, IP or MAC addresses, user names or site names. If a call fails, the error starts with what to do and ends with retry_guidance (retryable, retry_after_seconds, action): never retry when retryable is false.

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": {
      "assets": "<assets>"
    },
    "name": "check_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetsYesDevices with the result_hash from an earlier correlate_devices call. About 0.2 s per distinct device (200 distinct devices take about 40 s); after a timeout send batches of at most 50.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.3.3
    • changedInput schema / $defs / DeviceWithHash / properties / asset_id / description
      Previous value: -"Optional neutral id to map results back, for example 'asset-7'. Never a host name or address."New value: +"Optional id to map results back, for example your asset tag 'PLC-LINE-2' or 'asset-7'. An id that contains an IP, MAC or email address or is a host name with a domain is replaced with asset-N."
    • addedInput schema / $defs / DeviceWithHash / properties / part_number
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional vendor part, order or model number when the inventory holds it separately from the product name, for example 'IR809G-LTE-VZ-K9' or '3623-072202'. Matched exactly for end-of-life and firmware answers.",
      +  "title": "Part Number"
      +}
    • addedInput schema / $defs / DeviceWithHash / properties / status_facts
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional: the status_facts from the same earlier result, unchanged. Then each status change is named in reasons.",
      +  "title": "Status Facts"
      +}
    • addedInput schema / $defs / DeviceWithHash / properties / status_hash
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional: the status_hash from the same earlier result. Then the answer also says whether the status changed (known-exploited, lifecycle, firmware currency).",
      +  "title": "Status Hash"
      +}
    • changedInput schema / properties / assets / description
      Previous value: -"Devices with the result_hash from an earlier correlate_devices call."New value: +"Devices with the result_hash from an earlier correlate_devices call. About 0.2 s per distinct device (200 distinct devices take about 40 s); after a timeout send batches of at most 50."
  2. First observedv0.1.0

TDQS

A4.6/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), but the description goes well beyond them: it discloses the cost profile ('cheap'), what is returned (changed devices plus new hash, status_changed, reasons), the privacy constraint on input data, and the full error contract including retry_guidance fields and the non-retryable rule. This is behavior an agent cannot get from the annotations or schema.

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 the core distinction ('Cheap repeat check') followed by the workflow, the status-tracking extension, and the error contract in a logical order. It is dense but every clause carries operational meaning; the privacy and retry sentences are slightly bolted-on rather than integrated.

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?

There is no output schema, and the description fully covers return values (changed devices and their new hash, status_changed, reasons) as well as the error shape and retry semantics. The timing/batching guidance lives in the schema, so nothing an agent needs to call this correctly is missing.

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% and each field already documents itself, so the description only restates that vendor/product/version must match the earlier call and that result_hash, status_hash and status_facts come from prior results. It does clarify the pairing of status_hash with status_facts ('status_changed ... and reasons names each change'), but adds little beyond the schema's own wording. Baseline 3 is appropriate.

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 ('cheap repeat check' that 'returns which devices changed and their new hash') and explicitly scopes it to devices previously checked with correlate_devices. An agent can distinguish this from correlate_devices and the other siblings without opening any 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?

Explicitly says when to use it ('Use this for repeat checks'), names the alternative and the condition that selects it ('only changed devices need a fresh correlate_devices call'), and states a hard exclusion ('Never send host names, IP or MAC addresses, user names or site names'). The retry rule ('never retry when retryable is false') is also a concrete directive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.