Skip to content

review_deployment_scale_deploy

Review an already saved managed Swarm Deployment replica count before explicit Deploy, including after MCP restart. Operate grant; Deployment/Swarm/Build Read and Swarm Inspect. Bind full private definition/references and exact current replicated service. No writes or execution.

Availability

KOMODO_ALLOW_OPERATE=true

The instance’s tool selection and upstream Core permissions also apply. Some inputs require additional grants.

Effect annotations

  • readOnlyHint — true
  • destructiveHint — false
  • idempotentHint — false

Inputs

The registered schema gives field types, alternatives and declared bounds. The description and operator guides also cover checks applied at runtime.

replicas
Required · type "integer" · minimum 0 · maximum 1000
target
Required · type "object"
Show input JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "replicas": {
      "format": "int32",
      "maximum": 1000,
      "minimum": 0,
      "type": "integer"
    },
    "target": {
      "additionalProperties": false,
      "oneOf": [
        {
          "required": [
            "id"
          ]
        },
        {
          "required": [
            "name"
          ]
        }
      ],
      "properties": {
        "id": {
          "pattern": "^[0-9a-fA-F]{24}$",
          "type": "string"
        },
        "name": {
          "maxLength": 128,
          "minLength": 1,
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "required": [
    "target",
    "replicas"
  ],
  "type": "object"
}

Output

The registered output schema covers structured results and tool errors.

DeployReview
effects, executions_submitted, preview_id, requested_replicas, saved_definition_verified, swarm_id, target, writes_submitted
AppError
candidates, correction, field, kind, message, operation, status
Show output JSON Schema
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "anyOf": [
    {
      "$ref": "#/$defs/DeployReview"
    },
    {
      "$ref": "#/$defs/AppError"
    }
  ],
  "$defs": {
    "AppError": {
      "additionalProperties": false,
      "description": "Only application-owned messages and selected, nonsensitive metadata survive.",
      "properties": {
        "candidates": {
          "items": {
            "$ref": "#/$defs/Candidate"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "correction": {
          "type": [
            "string",
            "null"
          ]
        },
        "field": {
          "type": [
            "string",
            "null"
          ]
        },
        "kind": {
          "$ref": "#/$defs/ErrorKind"
        },
        "message": {
          "type": "string"
        },
        "operation": {
          "type": "string"
        },
        "status": {
          "format": "uint16",
          "maximum": 65535,
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "kind",
        "message",
        "operation"
      ],
      "type": "object"
    },
    "Candidate": {
      "additionalProperties": false,
      "description": "A bounded ambiguity hint, never a raw upstream resource.",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ],
      "type": "object"
    },
    "ConfigurationTarget": {
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "kind": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "id",
        "name"
      ],
      "type": "object"
    },
    "DeployReview": {
      "properties": {
        "effects": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "executions_submitted": {
          "format": "uint8",
          "maximum": 255,
          "minimum": 0,
          "type": "integer"
        },
        "preview_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "requested_replicas": {
          "format": "int32",
          "type": "integer"
        },
        "saved_definition_verified": {
          "type": "boolean"
        },
        "swarm_id": {
          "type": "string"
        },
        "target": {
          "$ref": "#/$defs/ConfigurationTarget"
        },
        "writes_submitted": {
          "format": "uint8",
          "maximum": 255,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "preview_id",
        "target",
        "swarm_id",
        "requested_replicas",
        "saved_definition_verified",
        "writes_submitted",
        "executions_submitted",
        "effects"
      ],
      "type": "object"
    },
    "ErrorKind": {
      "description": "Stable public categories. No variant contains a raw upstream error.",
      "enum": [
        "invalid_arguments",
        "not_found",
        "ambiguous_target",
        "incomplete_resolution",
        "configuration",
        "authentication",
        "permission_denied",
        "timeout",
        "unreachable",
        "upstream",
        "invalid_response",
        "response_too_large",
        "capability_disabled",
        "unsupported_target",
        "stale_preview",
        "invalid_preview"
      ],
      "type": "string"
    }
  }
}

Operator guides

All built-in tools