nexus_compare_live_state_with_declared_state
Detect drift by comparing live Nexus repositories against a declared state, listing repositories that are missing, extra, or mismatched by name, format, or type.
Instructions
Compare live repositories with a declared state, for example one exported from Terraform or Puppet data by the user. Returns repositories missing in Nexus, repositories present only in Nexus, and repositories whose format or type differ. Only name, format and type are compared. Ask the user for the declared state before calling; to produce one from the live instance use nexus_generate_inventory_json. Covers what the configured account can see; endpoints missing for version, edition or permission reasons appear under limitations. Errors if Nexus is not configured, rejects the credentials or is unreachable.
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": {
"declared_state": "<declared_state>"
},
"name": "nexus_compare_live_state_with_declared_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| declared_state | Yes | Declared configuration as {"repositories": {"<name>": {"format": "maven2", "type": "proxy"}}}. Other keys are ignored. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||