Skip to main content
Glama

subscription_label_edit

Idempotent

Change only the display name of one Port OS event subscription by exact ID.

Use a PLAIN name-value object. The event, endpoint, filter and destination are immutable; to change what is watched, establish a replacement monitor and cancel the old ID.

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": {
      "idempotencyKey": "<idempotencyKey>",
      "ifMatch": "<ifMatch>",
      "id": "<id>",
      "name": "<name>"
    },
    "name": "subscription_label_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesExact subscription ID returned by subscription_list. Never use a display name or endpoint ID.
nameYes
ifMatchYesExact strong etag from subscription_inspect or subscription_list.
idempotencyKeyYesStable unique key for this write; reuse it only to retry the same request for 24 hours.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed23 schema fields changed
    • addedOutput schema / $defs / ErrorCode
      Added value: +{
      +  "enum": [
      +    "BAD_REQUEST",
      +    "UNAUTHORIZED",
      +    "FORBIDDEN",
      +    "INSUFFICIENT_SCOPE",
      +    "NOT_FOUND",
      +    "CONFLICT",
      +    "UNPROCESSABLE_ENTITY",
      +    "UNSUPPORTED_OPERATION",
      +    "TOO_MANY_REQUESTS",
      +    "SERVICE_UNAVAILABLE",
      +    "NOT_IMPLEMENTED",
      +    "INTERNAL",
      +    "CHECKSUM_MISMATCH",
      +    "FILE_TOO_LARGE",
      +    "STORAGE_UNAVAILABLE",
      +    "INSUFFICIENT_PERMISSIONS",
      +    "INVALID_FILE_TYPE",
      +    "QUOTA_EXCEEDED",
      +    "CONCURRENT_MODIFICATION",
      +    "ENDPOINT_UNREACHABLE",
      +    "BRIDGE_UNREACHABLE",
      +    "CLOUD_CONTROL_DISABLED",
      +    "ENDPOINT_BUSY",
      +    "ENDPOINT_LOW_POWER",
      +    "AUTHORIZATION_CREDENTIAL_INVALID",
      +    "AUTHORIZATION_CREDENTIAL_EXPIRED",
      +    "INVALID_DIRECTIVE",
      +    "INVALID_VALUE",
      +    "VALUE_OUT_OF_RANGE",
      +    "NOT_SUPPORTED_IN_CURRENT_MODE",
      +    "RATE_LIMIT_EXCEEDED",
      +    "PROVIDER_SERVICE_UNAVAILABLE",
      +    "PROVIDER_TIMEOUT",
      +    "PROVIDER_INTERNAL_ERROR",
      +    "INVALID_PROVIDER_RESPONSE",
      +    "OUTCOME_UNKNOWN",
      +    "PRECONDITION_FAILED",
      +    "AUTH_LINK_NOT_READY",
      +    "AUTH_LINK_NOT_DISCONNECTABLE",
      +    "PRECONDITION_REQUIRED",
      +    "IDEMPOTENCY_KEY_REQUIRED",
      +    "IDEMPOTENCY_KEY_REUSED",
      +    "IDEMPOTENCY_KEY_IN_FLIGHT",
      +    "IDEMPOTENCY_KEY_INVALID",
      +    "GROUP_MERGED",
      +    "MULTI_ROOM_UNSUPPORTED",
      +    "MAP_NOT_ACTIVE",
      +    "TARGET_UNSUPPORTED",
      +    "TARGET_AMBIGUOUS",
      +    "TARGET_GROUP_NOT_FOUND",
      +    "TARGET_GROUP_DISABLED",
      +    "DUPLICATE_TARGET_GROUP",
      +    "MESSAGE_UNSUPPORTED",
      +    "MESSAGE_AMBIGUOUS",
      +    "ENDPOINT_DISABLED",
      +    "ENDPOINT_ROUTE_CHANGED",
      +    "ENDPOINT_HAS_DEPENDENCIES",
      +    "ENDPOINT_EVENT_SUBSCRIPTIONS_ACTIVE",
      +    "ENDPOINT_COMMITTED_CLEANUP_PENDING",
      +    "DEEP_QUERY_FAILED",
      +    "PROVIDER_NO_STATE",
      +    "EVENT_MANAGEMENT_DISABLED",
      +    "SUBSCRIPTION_IDENTITY_IMMUTABLE",
      +    "UNSUPPORTED_MEDIA_TYPE",
      +    "EVENT_PAYLOAD_TOO_LARGE",
      +    "REQUEST_BODY_TOO_LARGE",
      +    "EVENT_IDENTITY_CONFLICT",
      +    "EVENT_INGRESS_QUOTA_EXCEEDED",
      +    "EVENT_RECEIPT_EXPIRED",
      +    "EVENT_STORAGE_UNAVAILABLE",
      +    "EVENT_DEAD_LETTER_NOT_FOUND",
      +    "EVENT_REDRIVE_CONFLICT",
      +    "EVENT_REDRIVE_EXPIRED",
      +    "RECEIPT_CONTEXT_EXPIRED",
      +    "EVENT_MAINTENANCE_INCOMPLETE",
      +    "UNKNOWN_INTERFACE",
      +    "INVALID_CONFIGURATION",
      +    "INVALID_PLUGIN_MANIFEST",
      +    "INVALID_ATTRIBUTE",
      +    "INVALID_PROVIDER_MESSAGE",
      +    "UNDECLARED_CAPABILITY",
      +    "PLUGIN_ROUTE_ID_CONFLICT",
      +    "UNRESOLVED_REFERENCE",
      +    "INVALID_RELATIONSHIP",
      +    "RELATIONSHIP_CYCLE",
      +    "MULTIPLE_PARENTS",
      +    "FLOW_VALIDATION_FAILED",
      +    "PROVIDER_SYNC_UNSUPPORTED"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / $defs / ErrorDetails
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "actual": {
      +      "type": "string"
      +    },
      +    "correlationId": {
      +      "type": "string"
      +    },
      +    "correlationToken": {
      +      "type": "string"
      +    },
      +    "currentMode": {
      +      "type": "string"
      +    },
      +    "directive": {
      +      "type": "string"
      +    },
      +    "discoveryEndpointId": {
      +      "type": "string"
      +    },
      +    "endpointId": {
      +      "type": "string"
      +    },
      +    "fieldErrors": {
      +      "items": {
      +        "$ref": "#/$defs/ErrorFieldError"
      +      },
      +      "type": "array"
      +    },
      +    "maximum": {
      +      "type": "number"
      +    },
      +    "minimum": {
      +      "type": "number"
      +    },
      +    "parameter": {
      +      "type": "string"
      +    },
      +    "pluginId": {
      +      "type": "string"
      +    },
      +    "pluginRouteId": {
      +      "type": "string"
      +    },
      +    "provider": {
      +      "type": "string"
      +    },
      +    "providerCode": {
      +      "type": "string"
      +    },
      +    "retryAfterSeconds": {
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / $defs / ErrorFamily
      Added value: +{
      +  "enum": [
      +    "NOT_FOUND",
      +    "BAD_REQUEST",
      +    "UNAUTHORIZED",
      +    "FORBIDDEN",
      +    "CONFLICT",
      +    "GONE",
      +    "PRECONDITION_FAILED",
      +    "PRECONDITION_REQUIRED",
      +    "PAYLOAD_TOO_LARGE",
      +    "UNSUPPORTED_MEDIA_TYPE",
      +    "UNPROCESSABLE_ENTITY",
      +    "LOCKED",
      +    "TOO_MANY_REQUESTS",
      +    "BAD_GATEWAY",
      +    "SERVICE_UNAVAILABLE",
      +    "GATEWAY_TIMEOUT",
      +    "NOT_IMPLEMENTED",
      +    "INTERNAL_SERVER_ERROR",
      +    "REQUEST_INVALID",
      +    "AUTHENTICATION",
      +    "PERMISSION",
      +    "ENDPOINT_NOT_FOUND",
      +    "ENDPOINT_STATE_CONFLICT",
      +    "ENDPOINT_UNAVAILABLE",
      +    "RATE_LIMIT",
      +    "PROVIDER_BAD_RESPONSE",
      +    "PROVIDER_UNAVAILABLE",
      +    "PROVIDER_TIMEOUT"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / $defs / ErrorFieldError
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "field": {
      +      "type": "string"
      +    },
      +    "reason": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "field",
      +    "reason"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / $defs / MessageTarget
      Added value: +{
      +  "properties": {
      +    "cookie": {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    "groupRoutes": {
      +      "items": {
      +        "$ref": "#/$defs/MessageTargetGroupRoute"
      +      },
      +      "type": "array"
      +    },
      +    "id": {
      +      "type": "string"
      +    },
      +    "type": {
      +      "$ref": "#/$defs/MessageTargetType"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / $defs / MessageTargetGroupRoute
      Added value: +{
      +  "allOf": [
      +    {
      +      "$ref": "#/$defs/MessageTargetGroupRouteReference"
      +    },
      +    {
      +      "properties": {
      +        "parent": {
      +          "$ref": "#/$defs/MessageTargetGroupRouteReference"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  ]
      +}
    • addedOutput schema / $defs / MessageTargetGroupRouteReference
      Added value: +{
      +  "properties": {
      +    "cookie": {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    "groupId": {
      +      "type": "string"
      +    },
      +    "id": {
      +      "type": "string"
      +    },
      +    "pluginRouteId": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "groupId",
      +    "pluginRouteId"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / $defs / MessageTargetType
      Added value: +{
      +  "enum": [
      +    "ENDPOINT",
      +    "PLUGIN",
      +    "GROUP",
      +    "FLOW",
      +    "CONTROL_ROUTE",
      +    "MCP_EVENT_BINDING"
      +  ],
      +  "type": "string"
      +}
    • removedOutput schema / $defs / Query / description
      Removed value: -"Shared Port OS query AST modeled as a recursive JSON graph supporting match, comparison, pattern, freeform, and boolean operators."
    • removedOutput schema / $defs / Query / properties / and / description
      Removed value: -"match all fields in the array"
    • removedOutput schema / $defs / Query / properties / freeformMatch / description
      Removed value: -"Freeform query string for natural language searches"
    • changedOutput schema / $defs / Query / properties / greaterThan / allOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "key": {
      -        "description": "The key to match on",
      -        "type": "string"
      -      },
      -      "value": {
      -        "description": "The value to match on",
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/$defs/QueryComparator"
      +  }
      +]
    • removedOutput schema / $defs / Query / properties / greaterThan / description
      Removed value: -"Greater than comparison"
    • changedOutput schema / $defs / Query / properties / lessThan / allOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "key": {
      -        "description": "The key to match on",
      -        "type": "string"
      -      },
      -      "value": {
      -        "description": "The value to match on",
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/$defs/QueryComparator"
      +  }
      +]
    • removedOutput schema / $defs / Query / properties / lessThan / description
      Removed value: -"Less than comparison"
    • changedOutput schema / $defs / Query / properties / match / allOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "key": {
      -        "description": "The key to match on",
      -        "type": "string"
      -      },
      -      "value": {
      -        "description": "The value to match on",
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/$defs/QueryComparator"
      +  }
      +]
    • removedOutput schema / $defs / Query / properties / match / description
      Removed value: -"Match data between fields"
    • removedOutput schema / $defs / Query / properties / not / description
      Removed value: -"Negate the inner query (NOT wraps a single child query)"
    • removedOutput schema / $defs / Query / properties / patternMatch / description
      Removed value: -"Pattern for REGEX queries (e.g., \"*.json\")"
    • addedOutput schema / $defs / QueryComparator
      Added value: +{
      +  "properties": {
      +    "key": {
      +      "type": "string"
      +    },
      +    "value": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / $defs / SynchronizationItemError
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "code": {
      +      "$ref": "#/$defs/ErrorCode"
      +    },
      +    "family": {
      +      "$ref": "#/$defs/ErrorFamily"
      +    },
      +    "interface": {
      +      "type": "string"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "pluginRouteId": {
      +      "type": "string"
      +    },
      +    "relationshipExternalId": {
      +      "type": "string"
      +    },
      +    "status": {
      +      "maximum": 599,
      +      "minimum": 400,
      +      "type": "integer"
      +    },
      +    "version": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "family",
      +    "status",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / $defs / TypeValue
      Added value: +{
      +  "properties": {
      +    "type": {
      +      "type": "string"
      +    },
      +    "value": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "type",
      +    "value"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "description": "A subscription is a way to listen to events",
      -    "properties": {
      -      "context": {
      -        "additionalProperties": true,
      -        "description": "Structured filter criteria for granular device event matching. Keys are dot-notation paths into the message (e.g., \"header.namespace\", \"header.name\"). Values are the expected values to match. All context entries must match for the subscription to fire. Omitting context matches all events.\n",
      -        "type": "object"
      -      },
      -      "etag": {
      -        "description": "Opaque strong entity tag of the stored subscription version.",
      -        "type": "string"
      -      },
      -      "eventQueryProfile": {
      -        "description": "Supported typed event query validation profile, when this is an event monitor.",
      -        "type": "string"
      -      },
      -      "expiresAt": {
      -        "description": "Finite expiration; null means indefinite.",
      -        "format": "date-time",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "id": {
      -        "description": "The unique identifier for the subscription",
      -        "type": "string"
      -      },
      -      "name": {
      -        "properties": {
      -          "type": {
      -            "description": "The type identifier of the name value, defined as plain when not defined.",
      -            "type": "string"
      -          },
      -          "value": {
      -            "description": "the raw value of a plain name.",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "type",
      -          "value"
      -        ],
      -        "type": "object"
      -      },
      -      "owner": {
      -        "description": "The owner of the subscription",
      -        "type": "string"
      -      },
      -      "query": {
      -        "description": "Shared Port OS query AST modeled as a recursive JSON graph supporting match, comparison, pattern, freeform, and boolean operators.",
      -        "properties": {
      -          "and": {
      -            "description": "match all fields in the array",
      -            "items": {
      -              "$ref": "#/$defs/Query"
      -            },
      -            "type": "array"
      -          },
      -          "freeformMatch": {
      -            "description": "Freeform query string for natural language searches",
      -            "type": "string"
      -          },
      -          "greaterThan": {
      -            "allOf": [
      -              {
      -                "properties": {
      -                  "key": {
      -                    "description": "The key to match on",
      -                    "type": "string"
      -                  },
      -                  "value": {
      -                    "description": "The value to match on",
      -                    "type": "string"
      -                  }
      -                },
      -                "type": "object"
      -              }
      -            ],
      -            "description": "Greater than comparison"
      -          },
      -          "lessThan": {
      -            "allOf": [
      -              {
      -                "properties": {
      -                  "key": {
      -                    "description": "The key to match on",
      -                    "type": "string"
      -                  },
      -                  "value": {
      -                    "description": "The value to match on",
      -                    "type": "string"
      -                  }
      -                },
      -                "type": "object"
      -              }
      -            ],
      -            "description": "Less than comparison"
      -          },
      -          "match": {
      -            "allOf": [
      -              {
      -                "properties": {
      -                  "key": {
      -                    "description": "The key to match on",
      -                    "type": "string"
      -                  },
      -                  "value": {
      -                    "description": "The value to match on",
      -                    "type": "string"
      -                  }
      -                },
      -                "type": "object"
      -              }
      -            ],
      -            "description": "Match data between fields"
      -          },
      -          "not": {
      -            "allOf": [
      -              {
      -                "$ref": "#/$defs/Query"
      -              }
      -            ],
      -            "description": "Negate the inner query (NOT wraps a single child query)"
      -          },
      -          "or": {
      -            "items": {
      -              "$ref": "#/$defs/Query"
      -            },
      -            "type": "array"
      -          },
      -          "patternMatch": {
      -            "description": "Pattern for REGEX queries (e.g., \"*.json\")",
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "reasonCode": {
      -        "description": "Redacted stable lifecycle reason, when applicable.",
      -        "type": "string"
      -      },
      -      "status": {
      -        "description": "Event monitor lifecycle.",
      -        "enum": [
      -          "ACTIVE",
      -          "PAUSED",
      -          "SUSPENDED",
      -          "EXPIRED",
      -          "STOPPED"
      -        ],
      -        "type": "string"
      -      },
      -      "target": {
      -        "properties": {
      -          "cookie": {
      -            "additionalProperties": true,
      -            "description": "Abstract blob of contextual information necessary to dispatch a message to an endpoint.",
      -            "type": "object"
      -          },
      -          "groupRoutes": {
      -            "description": "Group routes Port OS selected for this dispatch, in the order the message requested them (for example the rooms of a clean-room message). Only Port OS sets this field; a value supplied by an API client is discarded.",
      -            "items": {
      -              "allOf": [
      -                {
      -                  "description": "A group route Port OS resolved for this dispatch. The plugin addresses it by its own pluginRouteId and cookie (the group route's pluginCustomMetadata).",
      -                  "properties": {
      -                    "cookie": {
      -                      "additionalProperties": true,
      -                      "description": "The group route's pluginCustomMetadata, as reported in discovery.",
      -                      "type": "object"
      -                    },
      -                    "groupId": {
      -                      "description": "Canonical endpoint group the group route belongs to, after merge redirects.",
      -                      "type": "string"
      -                    },
      -                    "id": {
      -                      "description": "Typed group-route ID (…/endpoint-group-routes/…).",
      -                      "type": "string"
      -                    },
      -                    "pluginRouteId": {
      -                      "description": "The plugin's own identifier for the group route, as reported in discovery.",
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "id",
      -                    "groupId",
      -                    "pluginRouteId"
      -                  ],
      -                  "type": "object"
      -                },
      -                {
      -                  "properties": {
      -                    "parent": {
      -                      "description": "A group route Port OS resolved for this dispatch. The plugin addresses it by its own pluginRouteId and cookie (the group route's pluginCustomMetadata).",
      -                      "properties": {
      -                        "cookie": {
      -                          "additionalProperties": true,
      -                          "description": "The group route's pluginCustomMetadata, as reported in discovery.",
      -                          "type": "object"
      -                        },
      -                        "groupId": {
      -                          "description": "Canonical endpoint group the group route belongs to, after merge redirects.",
      -                          "type": "string"
      -                        },
      -                        "id": {
      -                          "description": "Typed group-route ID (…/endpoint-group-routes/…).",
      -                          "type": "string"
      -                        },
      -                        "pluginRouteId": {
      -                          "description": "The plugin's own identifier for the group route, as reported in discovery.",
      -                          "type": "string"
      -                        }
      -                      },
      -                      "required": [
      -                        "id",
      -                        "groupId",
      -                        "pluginRouteId"
      -                      ],
      -                      "type": "object"
      -                    }
      -                  },
      -                  "type": "object"
      -                }
      -              ],
      -              "description": "A group route selected for this dispatch, for example a room the robot can clean, with its IS_PART_OF parent (for example the room's map) when it has one."
      -            },
      -            "type": "array"
      -          },
      -          "id": {
      -            "type": "string"
      -          },
      -          "type": {
      -            "enum": [
      -              "ENDPOINT",
      -              "PLUGIN",
      -              "GROUP",
      -              "FLOW",
      -              "CONTROL_ROUTE",
      -              "MCP_EVENT_BINDING"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "query",
      -      "target",
      -      "etag"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "The one Port OS error shape, returned by every REST error response and every MCP tool error. `code` names the specific failure and `family` its broad class; both are closed enums, so clients branch on them and show `message`, which says what failed and what to do next.",
      -    "properties": {
      -      "code": {
      -        "description": "The specific error, one of a closed set of Port OS codes. Every REST error body, MCP tool error, batch item error and discovery item error uses this enum; each code belongs to an `ErrorFamily` that decides its HTTP status. Provider-specific codes are never codes: they travel in `details.providerCode`. New failure kinds are added here, never as free strings.",
      -        "enum": [
      -          "BAD_REQUEST",
      -          "UNAUTHORIZED",
      -          "FORBIDDEN",
      -          "INSUFFICIENT_SCOPE",
      -          "NOT_FOUND",
      -          "CONFLICT",
      -          "UNPROCESSABLE_ENTITY",
      -          "UNSUPPORTED_OPERATION",
      -          "TOO_MANY_REQUESTS",
      -          "SERVICE_UNAVAILABLE",
      -          "NOT_IMPLEMENTED",
      -          "INTERNAL",
      -          "CHECKSUM_MISMATCH",
      -          "FILE_TOO_LARGE",
      -          "STORAGE_UNAVAILABLE",
      -          "INSUFFICIENT_PERMISSIONS",
      -          "INVALID_FILE_TYPE",
      -          "QUOTA_EXCEEDED",
      -          "CONCURRENT_MODIFICATION",
      -          "ENDPOINT_UNREACHABLE",
      -          "BRIDGE_UNREACHABLE",
      -          "CLOUD_CONTROL_DISABLED",
      -          "ENDPOINT_BUSY",
      -          "ENDPOINT_LOW_POWER",
      -          "AUTHORIZATION_CREDENTIAL_INVALID",
      -          "AUTHORIZATION_CREDENTIAL_EXPIRED",
      -          "INVALID_DIRECTIVE",
      -          "INVALID_VALUE",
      -          "VALUE_OUT_OF_RANGE",
      -          "NOT_SUPPORTED_IN_CURRENT_MODE",
      -          "RATE_LIMIT_EXCEEDED",
      -          "PROVIDER_SERVICE_UNAVAILABLE",
      -          "PROVIDER_TIMEOUT",
      -          "PROVIDER_INTERNAL_ERROR",
      -          "INVALID_PROVIDER_RESPONSE",
      -          "OUTCOME_UNKNOWN",
      -          "PRECONDITION_FAILED",
      -          "AUTH_LINK_NOT_READY",
      -          "AUTH_LINK_NOT_DISCONNECTABLE",
      -          "PRECONDITION_REQUIRED",
      -          "IDEMPOTENCY_KEY_REQUIRED",
      -          "IDEMPOTENCY_KEY_REUSED",
      -          "IDEMPOTENCY_KEY_IN_FLIGHT",
      -          "IDEMPOTENCY_KEY_INVALID",
      -          "GROUP_MERGED",
      -          "MULTI_ROOM_UNSUPPORTED",
      -          "MAP_NOT_ACTIVE",
      -          "TARGET_UNSUPPORTED",
      -          "TARGET_AMBIGUOUS",
      -          "TARGET_GROUP_NOT_FOUND",
      -          "TARGET_GROUP_DISABLED",
      -          "DUPLICATE_TARGET_GROUP",
      -          "MESSAGE_UNSUPPORTED",
      -          "MESSAGE_AMBIGUOUS",
      -          "ENDPOINT_DISABLED",
      -          "ENDPOINT_ROUTE_CHANGED",
      -          "ENDPOINT_HAS_DEPENDENCIES",
      -          "ENDPOINT_EVENT_SUBSCRIPTIONS_ACTIVE",
      -          "ENDPOINT_COMMITTED_CLEANUP_PENDING",
      -          "DEEP_QUERY_FAILED",
      -          "PROVIDER_NO_STATE",
      -          "EVENT_MANAGEMENT_DISABLED",
      -          "SUBSCRIPTION_IDENTITY_IMMUTABLE",
      -          "UNSUPPORTED_MEDIA_TYPE",
      -          "EVENT_PAYLOAD_TOO_LARGE",
      -          "REQUEST_BODY_TOO_LARGE",
      -          "EVENT_IDENTITY_CONFLICT",
      -          "EVENT_INGRESS_QUOTA_EXCEEDED",
      -          "EVENT_RECEIPT_EXPIRED",
      -          "EVENT_STORAGE_UNAVAILABLE",
      -          "EVENT_DEAD_LETTER_NOT_FOUND",
      -          "EVENT_REDRIVE_CONFLICT",
      -          "EVENT_REDRIVE_EXPIRED",
      -          "RECEIPT_CONTEXT_EXPIRED",
      -          "EVENT_MAINTENANCE_INCOMPLETE",
      -          "UNKNOWN_INTERFACE",
      -          "INVALID_CONFIGURATION",
      -          "INVALID_PLUGIN_MANIFEST",
      -          "INVALID_ATTRIBUTE",
      -          "INVALID_PROVIDER_MESSAGE",
      -          "UNDECLARED_CAPABILITY",
      -          "PLUGIN_ROUTE_ID_CONFLICT",
      -          "UNRESOLVED_REFERENCE",
      -          "INVALID_RELATIONSHIP",
      -          "RELATIONSHIP_CYCLE",
      -          "MULTIPLE_PARENTS",
      -          "FLOW_VALIDATION_FAILED",
      -          "PROVIDER_SYNC_UNSUPPORTED"
      -        ],
      -        "type": "string"
      -      },
      -      "details": {
      -        "description": "Optional typed context for an error. Fields are additive and only populated when the error can safely expose that context to API clients.\n",
      -        "properties": {
      -          "actual": {
      -            "description": "String representation of the submitted value when the plugin can safely report it.",
      -            "type": "string"
      -          },
      -          "correlationId": {
      -            "description": "Provider or plugin correlation ID useful for support.",
      -            "type": "string"
      -          },
      -          "correlationToken": {
      -            "description": "Token that correlates an outcome-unknown dispatch with its eventual result.",
      -            "type": "string"
      -          },
      -          "currentMode": {
      -            "description": "Current endpoint mode when `code` is `NOT_SUPPORTED_IN_CURRENT_MODE`.",
      -            "type": "string"
      -          },
      -          "directive": {
      -            "description": "Message namespace and name or provider directive that failed.",
      -            "type": "string"
      -          },
      -          "discoveryEndpointId": {
      -            "description": "Port OS provider endpoint (type ENDPOINT_PLUGIN) of the connection to send `discover-routes` to when `code` is `TARGET_UNSUPPORTED` because the route must be rediscovered.",
      -            "type": "string"
      -          },
      -          "endpointId": {
      -            "description": "Port OS endpoint ID involved in the failed dispatch.",
      -            "type": "string"
      -          },
      -          "fieldErrors": {
      -            "description": "The request fields that were rejected, when the error is about the request's content.",
      -            "items": {
      -              "description": "One rejected request field of an error.",
      -              "properties": {
      -                "field": {
      -                  "description": "Name or JSON path of the rejected field.",
      -                  "type": "string"
      -                },
      -                "reason": {
      -                  "description": "Why the field was rejected and what an accepted value looks like.",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "field",
      -                "reason"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "maximum": {
      -            "description": "Maximum accepted value when `code` is `VALUE_OUT_OF_RANGE`.",
      -            "type": "number"
      -          },
      -          "minimum": {
      -            "description": "Minimum accepted value when `code` is `VALUE_OUT_OF_RANGE`.",
      -            "type": "number"
      -          },
      -          "parameter": {
      -            "description": "Request parameter or capability value that caused the failure.",
      -            "type": "string"
      -          },
      -          "pluginId": {
      -            "description": "Port OS plugin ID that reported the failure.",
      -            "type": "string"
      -          },
      -          "pluginRouteId": {
      -            "description": "Plugin-owned route identifier involved in the failed dispatch.",
      -            "type": "string"
      -          },
      -          "provider": {
      -            "description": "Third-party provider or bridge name that reported the failure.",
      -            "type": "string"
      -          },
      -          "providerCode": {
      -            "description": "The third-party provider's own error code, for support. It is opaque and provider-specific; branch on `code` and `family` instead.",
      -            "type": "string"
      -          },
      -          "retryAfterSeconds": {
      -            "description": "Suggested retry delay for rate-limit or provider-unavailable failures.",
      -            "minimum": 0,
      -            "type": "integer"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "errors": {
      -        "description": "Every rejected item when a request that is validated item by item and applied atomically fails, such as a discovery `SynchronizationRequest` whose routes, group routes or relationships are rejected. Omitted for single-item failures.\n",
      -        "items": {
      -          "description": "One rejected discovery item of a `SynchronizationRequest`, keyed by the plugin-owned identity of the rejected item: `pluginRouteId` for a route or group route, or `relationshipExternalId` for a relationship. Exactly one of the two is set. It shares the `code`, `family`, `status` and `message` fields of `BatchItemError`; discovery items are keyed by plugin-owned identity because they carry no `requestId`. A request with any rejected item is rejected as a whole and lists every rejected item.\n",
      -          "properties": {
      -            "code": {
      -              "description": "The specific error, one of a closed set of Port OS codes. Every REST error body, MCP tool error, batch item error and discovery item error uses this enum; each code belongs to an `ErrorFamily` that decides its HTTP status. Provider-specific codes are never codes: they travel in `details.providerCode`. New failure kinds are added here, never as free strings.",
      -              "enum": [
      -                "BAD_REQUEST",
      -                "UNAUTHORIZED",
      -                "FORBIDDEN",
      -                "INSUFFICIENT_SCOPE",
      -                "NOT_FOUND",
      -                "CONFLICT",
      -                "UNPROCESSABLE_ENTITY",
      -                "UNSUPPORTED_OPERATION",
      -                "TOO_MANY_REQUESTS",
      -                "SERVICE_UNAVAILABLE",
      -                "NOT_IMPLEMENTED",
      -                "INTERNAL",
      -                "CHECKSUM_MISMATCH",
      -                "FILE_TOO_LARGE",
      -                "STORAGE_UNAVAILABLE",
      -                "INSUFFICIENT_PERMISSIONS",
      -                "INVALID_FILE_TYPE",
      -                "QUOTA_EXCEEDED",
      -                "CONCURRENT_MODIFICATION",
      -                "ENDPOINT_UNREACHABLE",
      -                "BRIDGE_UNREACHABLE",
      -                "CLOUD_CONTROL_DISABLED",
      -                "ENDPOINT_BUSY",
      -                "ENDPOINT_LOW_POWER",
      -                "AUTHORIZATION_CREDENTIAL_INVALID",
      -                "AUTHORIZATION_CREDENTIAL_EXPIRED",
      -                "INVALID_DIRECTIVE",
      -                "INVALID_VALUE",
      -                "VALUE_OUT_OF_RANGE",
      -                "NOT_SUPPORTED_IN_CURRENT_MODE",
      -                "RATE_LIMIT_EXCEEDED",
      -                "PROVIDER_SERVICE_UNAVAILABLE",
      -                "PROVIDER_TIMEOUT",
      -                "PROVIDER_INTERNAL_ERROR",
      -                "INVALID_PROVIDER_RESPONSE",
      -                "OUTCOME_UNKNOWN",
      -                "PRECONDITION_FAILED",
      -                "AUTH_LINK_NOT_READY",
      -                "AUTH_LINK_NOT_DISCONNECTABLE",
      -                "PRECONDITION_REQUIRED",
      -                "IDEMPOTENCY_KEY_REQUIRED",
      -                "IDEMPOTENCY_KEY_REUSED",
      -                "IDEMPOTENCY_KEY_IN_FLIGHT",
      -                "IDEMPOTENCY_KEY_INVALID",
      -                "GROUP_MERGED",
      -                "MULTI_ROOM_UNSUPPORTED",
      -                "MAP_NOT_ACTIVE",
      -                "TARGET_UNSUPPORTED",
      -                "TARGET_AMBIGUOUS",
      -                "TARGET_GROUP_NOT_FOUND",
      -                "TARGET_GROUP_DISABLED",
      -                "DUPLICATE_TARGET_GROUP",
      -                "MESSAGE_UNSUPPORTED",
      -                "MESSAGE_AMBIGUOUS",
      -                "ENDPOINT_DISABLED",
      -                "ENDPOINT_ROUTE_CHANGED",
      -                "ENDPOINT_HAS_DEPENDENCIES",
      -                "ENDPOINT_EVENT_SUBSCRIPTIONS_ACTIVE",
      -                "ENDPOINT_COMMITTED_CLEANUP_PENDING",
      -                "DEEP_QUERY_FAILED",
      -                "PROVIDER_NO_STATE",
      -                "EVENT_MANAGEMENT_DISABLED",
      -                "SUBSCRIPTION_IDENTITY_IMMUTABLE",
      -                "UNSUPPORTED_MEDIA_TYPE",
      -                "EVENT_PAYLOAD_TOO_LARGE",
      -                "REQUEST_BODY_TOO_LARGE",
      -                "EVENT_IDENTITY_CONFLICT",
      -                "EVENT_INGRESS_QUOTA_EXCEEDED",
      -                "EVENT_RECEIPT_EXPIRED",
      -                "EVENT_STORAGE_UNAVAILABLE",
      -                "EVENT_DEAD_LETTER_NOT_FOUND",
      -                "EVENT_REDRIVE_CONFLICT",
      -                "EVENT_REDRIVE_EXPIRED",
      -                "RECEIPT_CONTEXT_EXPIRED",
      -                "EVENT_MAINTENANCE_INCOMPLETE",
      -                "UNKNOWN_INTERFACE",
      -                "INVALID_CONFIGURATION",
      -                "INVALID_PLUGIN_MANIFEST",
      -                "INVALID_ATTRIBUTE",
      -                "INVALID_PROVIDER_MESSAGE",
      -                "UNDECLARED_CAPABILITY",
      -                "PLUGIN_ROUTE_ID_CONFLICT",
      -                "UNRESOLVED_REFERENCE",
      -                "INVALID_RELATIONSHIP",
      -                "RELATIONSHIP_CYCLE",
      -                "MULTIPLE_PARENTS",
      -                "FLOW_VALIDATION_FAILED",
      -                "PROVIDER_SYNC_UNSUPPORTED"
      -              ],
      -              "type": "string"
      -            },
      -            "family": {
      -              "description": "The broad class of an error. The family decides the HTTP status of a REST error, so clients can handle every code of a family alike.",
      -              "enum": [
      -                "NOT_FOUND",
      -                "BAD_REQUEST",
      -                "UNAUTHORIZED",
      -                "FORBIDDEN",
      -                "CONFLICT",
      -                "GONE",
      -                "PRECONDITION_FAILED",
      -                "PRECONDITION_REQUIRED",
      -                "PAYLOAD_TOO_LARGE",
      -                "UNSUPPORTED_MEDIA_TYPE",
      -                "UNPROCESSABLE_ENTITY",
      -                "LOCKED",
      -                "TOO_MANY_REQUESTS",
      -                "BAD_GATEWAY",
      -                "SERVICE_UNAVAILABLE",
      -                "GATEWAY_TIMEOUT",
      -                "NOT_IMPLEMENTED",
      -                "INTERNAL_SERVER_ERROR",
      -                "REQUEST_INVALID",
      -                "AUTHENTICATION",
      -                "PERMISSION",
      -                "ENDPOINT_NOT_FOUND",
      -                "ENDPOINT_STATE_CONFLICT",
      -                "ENDPOINT_UNAVAILABLE",
      -                "RATE_LIMIT",
      -                "PROVIDER_BAD_RESPONSE",
      -                "PROVIDER_UNAVAILABLE",
      -                "PROVIDER_TIMEOUT"
      -              ],
      -              "type": "string"
      -            },
      -            "interface": {
      -              "description": "Canonical capability interface name the failure applies to, when the failure is interface-specific.",
      -              "type": "string"
      -            },
      -            "message": {
      -              "description": "Plain-language description of the failure and the suggested fix.",
      -              "type": "string"
      -            },
      -            "pluginRouteId": {
      -              "description": "Plugin-owned identifier of the rejected route or group route. Set unless the item is a relationship.",
      -              "type": "string"
      -            },
      -            "relationshipExternalId": {
      -              "description": "Plugin-owned `externalId` of the rejected relationship. Set only for relationship items.",
      -              "type": "string"
      -            },
      -            "status": {
      -              "description": "HTTP-equivalent status code of the item failure.",
      -              "maximum": 599,
      -              "minimum": 400,
      -              "type": "integer"
      -            },
      -            "version": {
      -              "description": "Declared capability interface version the failure applies to, when the failure is interface-specific.",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "code",
      -            "family",
      -            "status",
      -            "message"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "family": {
      -        "description": "The broad class of an error. The family decides the HTTP status of a REST error, so clients can handle every code of a family alike.",
      -        "enum": [
      -          "NOT_FOUND",
      -          "BAD_REQUEST",
      -          "UNAUTHORIZED",
      -          "FORBIDDEN",
      -          "CONFLICT",
      -          "GONE",
      -          "PRECONDITION_FAILED",
      -          "PRECONDITION_REQUIRED",
      -          "PAYLOAD_TOO_LARGE",
      -          "UNSUPPORTED_MEDIA_TYPE",
      -          "UNPROCESSABLE_ENTITY",
      -          "LOCKED",
      -          "TOO_MANY_REQUESTS",
      -          "BAD_GATEWAY",
      -          "SERVICE_UNAVAILABLE",
      -          "GATEWAY_TIMEOUT",
      -          "NOT_IMPLEMENTED",
      -          "INTERNAL_SERVER_ERROR",
      -          "REQUEST_INVALID",
      -          "AUTHENTICATION",
      -          "PERMISSION",
      -          "ENDPOINT_NOT_FOUND",
      -          "ENDPOINT_STATE_CONFLICT",
      -          "ENDPOINT_UNAVAILABLE",
      -          "RATE_LIMIT",
      -          "PROVIDER_BAD_RESPONSE",
      -          "PROVIDER_UNAVAILABLE",
      -          "PROVIDER_TIMEOUT"
      -        ],
      -        "type": "string"
      -      },
      -      "message": {
      -        "description": "Plain-language description of the failure and the suggested next action.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "family",
      -      "code",
      -      "message"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "context": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "etag": {
      +        "type": "string"
      +      },
      +      "eventQueryProfile": {
      +        "type": "string"
      +      },
      +      "expiresAt": {
      +        "format": "date-time",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "$ref": "#/$defs/TypeValue"
      +      },
      +      "owner": {
      +        "type": "string"
      +      },
      +      "query": {
      +        "$ref": "#/$defs/Query"
      +      },
      +      "reasonCode": {
      +        "type": "string"
      +      },
      +      "status": {
      +        "enum": [
      +          "ACTIVE",
      +          "PAUSED",
      +          "SUSPENDED",
      +          "EXPIRED",
      +          "STOPPED"
      +        ],
      +        "type": "string"
      +      },
      +      "target": {
      +        "$ref": "#/$defs/MessageTarget"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "query",
      +      "target",
      +      "etag"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "code": {
      +        "$ref": "#/$defs/ErrorCode"
      +      },
      +      "details": {
      +        "$ref": "#/$defs/ErrorDetails"
      +      },
      +      "errors": {
      +        "items": {
      +          "$ref": "#/$defs/SynchronizationItemError"
      +        },
      +        "type": "array"
      +      },
      +      "family": {
      +        "$ref": "#/$defs/ErrorFamily"
      +      },
      +      "message": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "family",
      +      "code",
      +      "message"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed5 schema fields changed
    • addedInput schema / properties / idempotencyKey
      Added value: +{
      +  "description": "Stable unique key for this write; reuse it only to retry the same request for 24 hours.",
      +  "maxLength": 255,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / ifMatch
      Added value: +{
      +  "description": "Exact strong etag from subscription_inspect or subscription_list.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "id",
      -  "name"
      -]New value: +[
      +  "idempotencyKey",
      +  "ifMatch",
      +  "id",
      +  "name"
      +]
    • addedOutput schema / $defs
      Added value: +{
      +  "Query": {
      +    "description": "Shared Port OS query AST modeled as a recursive JSON graph supporting match, comparison, pattern, freeform, and boolean operators.",
      +    "properties": {
      +      "and": {
      +        "description": "match all fields in the array",
      +        "items": {
      +          "$ref": "#/$defs/Query"
      +        },
      +        "type": "array"
      +      },
      +      "freeformMatch": {
      +        "description": "Freeform query string for natural language searches",
      +        "type": "string"
      +      },
      +      "greaterThan": {
      +        "allOf": [
      +          {
      +            "properties": {
      +              "key": {
      +                "description": "The key to match on",
      +                "type": "string"
      +              },
      +              "value": {
      +                "description": "The value to match on",
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          }
      +        ],
      +        "description": "Greater than comparison"
      +      },
      +      "lessThan": {
      +        "allOf": [
      +          {
      +            "properties": {
      +              "key": {
      +                "description": "The key to match on",
      +                "type": "string"
      +              },
      +              "value": {
      +                "description": "The value to match on",
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          }
      +        ],
      +        "description": "Less than comparison"
      +      },
      +      "match": {
      +        "allOf": [
      +          {
      +            "properties": {
      +              "key": {
      +                "description": "The key to match on",
      +                "type": "string"
      +              },
      +              "value": {
      +                "description": "The value to match on",
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          }
      +        ],
      +        "description": "Match data between fields"
      +      },
      +      "not": {
      +        "allOf": [
      +          {
      +            "$ref": "#/$defs/Query"
      +          }
      +        ],
      +        "description": "Negate the inner query (NOT wraps a single child query)"
      +      },
      +      "or": {
      +        "items": {
      +          "$ref": "#/$defs/Query"
      +        },
      +        "type": "array"
      +      },
      +      "patternMatch": {
      +        "description": "Pattern for REGEX queries (e.g., \"*.json\")",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  }
      +}
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "catalogName": {
      -        "type": "string"
      -      },
      -      "endpointId": {
      -        "type": "string"
      -      },
      -      "expiresAt": {
      -        "format": "date-time",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "generation": {
      -        "type": "integer"
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "name": {
      -        "properties": {
      -          "type": {
      -            "const": "PLAIN"
      -          },
      -          "value": {
      -            "maxLength": 256,
      -            "minLength": 1,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "type",
      -          "value"
      -        ],
      -        "type": "object"
      -      },
      -      "query": {
      -        "type": "object"
      -      },
      -      "reasonCode": {
      -        "type": "string"
      -      },
      -      "revision": {
      -        "type": "integer"
      -      },
      -      "status": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "name",
      -      "query",
      -      "endpointId",
      -      "catalogName",
      -      "status",
      -      "generation",
      -      "revision",
      -      "expiresAt"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "The one Port OS error shape, returned by every REST error response and every MCP tool error. `code` names the specific failure and `family` its broad class; both are closed enums, so clients branch on them and show `message`, which says what failed and what to do next.",
      -    "properties": {
      -      "code": {
      -        "description": "The specific error, one of a closed set of Port OS codes. Every REST error body, MCP tool error, batch item error and discovery item error uses this enum; each code belongs to an `ErrorFamily` that decides its HTTP status. Provider-specific codes are never codes: they travel in `details.providerCode`. New failure kinds are added here, never as free strings.",
      -        "enum": [
      -          "BAD_REQUEST",
      -          "UNAUTHORIZED",
      -          "FORBIDDEN",
      -          "INSUFFICIENT_SCOPE",
      -          "NOT_FOUND",
      -          "CONFLICT",
      -          "UNPROCESSABLE_ENTITY",
      -          "UNSUPPORTED_OPERATION",
      -          "TOO_MANY_REQUESTS",
      -          "SERVICE_UNAVAILABLE",
      -          "NOT_IMPLEMENTED",
      -          "INTERNAL",
      -          "CHECKSUM_MISMATCH",
      -          "FILE_TOO_LARGE",
      -          "STORAGE_UNAVAILABLE",
      -          "INSUFFICIENT_PERMISSIONS",
      -          "INVALID_FILE_TYPE",
      -          "QUOTA_EXCEEDED",
      -          "CONCURRENT_MODIFICATION",
      -          "ENDPOINT_UNREACHABLE",
      -          "BRIDGE_UNREACHABLE",
      -          "CLOUD_CONTROL_DISABLED",
      -          "ENDPOINT_BUSY",
      -          "ENDPOINT_LOW_POWER",
      -          "AUTHORIZATION_CREDENTIAL_INVALID",
      -          "AUTHORIZATION_CREDENTIAL_EXPIRED",
      -          "INVALID_DIRECTIVE",
      -          "INVALID_VALUE",
      -          "VALUE_OUT_OF_RANGE",
      -          "NOT_SUPPORTED_IN_CURRENT_MODE",
      -          "RATE_LIMIT_EXCEEDED",
      -          "PROVIDER_SERVICE_UNAVAILABLE",
      -          "PROVIDER_TIMEOUT",
      -          "PROVIDER_INTERNAL_ERROR",
      -          "INVALID_PROVIDER_RESPONSE",
      -          "OUTCOME_UNKNOWN",
      -          "PRECONDITION_FAILED",
      -          "AUTH_LINK_NOT_READY",
      -          "AUTH_LINK_NOT_DISCONNECTABLE",
      -          "PRECONDITION_REQUIRED",
      -          "IDEMPOTENCY_KEY_REQUIRED",
      -          "IDEMPOTENCY_KEY_REUSED",
      -          "IDEMPOTENCY_KEY_IN_FLIGHT",
      -          "IDEMPOTENCY_KEY_INVALID",
      -          "GROUP_MERGED",
      -          "MULTI_ROOM_UNSUPPORTED",
      -          "MAP_NOT_ACTIVE",
      -          "TARGET_UNSUPPORTED",
      -          "TARGET_AMBIGUOUS",
      -          "TARGET_GROUP_NOT_FOUND",
      -          "TARGET_GROUP_DISABLED",
      -          "DUPLICATE_TARGET_GROUP",
      -          "MESSAGE_UNSUPPORTED",
      -          "MESSAGE_AMBIGUOUS",
      -          "ENDPOINT_DISABLED",
      -          "ENDPOINT_ROUTE_CHANGED",
      -          "ENDPOINT_HAS_DEPENDENCIES",
      -          "ENDPOINT_EVENT_SUBSCRIPTIONS_ACTIVE",
      -          "ENDPOINT_COMMITTED_CLEANUP_PENDING",
      -          "DEEP_QUERY_FAILED",
      -          "PROVIDER_NO_STATE",
      -          "EVENT_MANAGEMENT_DISABLED",
      -          "SUBSCRIPTION_IDENTITY_IMMUTABLE",
      -          "UNSUPPORTED_MEDIA_TYPE",
      -          "EVENT_PAYLOAD_TOO_LARGE",
      -          "REQUEST_BODY_TOO_LARGE",
      -          "EVENT_IDENTITY_CONFLICT",
      -          "EVENT_INGRESS_QUOTA_EXCEEDED",
      -          "EVENT_RECEIPT_EXPIRED",
      -          "EVENT_STORAGE_UNAVAILABLE",
      -          "EVENT_DEAD_LETTER_NOT_FOUND",
      -          "EVENT_REDRIVE_CONFLICT",
      -          "EVENT_REDRIVE_EXPIRED",
      -          "RECEIPT_CONTEXT_EXPIRED",
      -          "EVENT_MAINTENANCE_INCOMPLETE",
      -          "UNKNOWN_INTERFACE",
      -          "INVALID_CONFIGURATION",
      -          "INVALID_PLUGIN_MANIFEST",
      -          "INVALID_ATTRIBUTE",
      -          "INVALID_PROVIDER_MESSAGE",
      -          "UNDECLARED_CAPABILITY",
      -          "PLUGIN_ROUTE_ID_CONFLICT",
      -          "UNRESOLVED_REFERENCE",
      -          "INVALID_RELATIONSHIP",
      -          "RELATIONSHIP_CYCLE",
      -          "MULTIPLE_PARENTS",
      -          "FLOW_VALIDATION_FAILED",
      -          "PROVIDER_SYNC_UNSUPPORTED"
      -        ],
      -        "type": "string"
      -      },
      -      "details": {
      -        "description": "Optional typed context for an error. Fields are additive and only populated when the error can safely expose that context to API clients.\n",
      -        "properties": {
      -          "actual": {
      -            "description": "String representation of the submitted value when the plugin can safely report it.",
      -            "type": "string"
      -          },
      -          "correlationId": {
      -            "description": "Provider or plugin correlation ID useful for support.",
      -            "type": "string"
      -          },
      -          "correlationToken": {
      -            "description": "Token that correlates an outcome-unknown dispatch with its eventual result.",
      -            "type": "string"
      -          },
      -          "currentMode": {
      -            "description": "Current endpoint mode when `code` is `NOT_SUPPORTED_IN_CURRENT_MODE`.",
      -            "type": "string"
      -          },
      -          "directive": {
      -            "description": "Message namespace and name or provider directive that failed.",
      -            "type": "string"
      -          },
      -          "discoveryEndpointId": {
      -            "description": "Port OS provider endpoint (type ENDPOINT_PLUGIN) of the connection to send `discover-routes` to when `code` is `TARGET_UNSUPPORTED` because the route must be rediscovered.",
      -            "type": "string"
      -          },
      -          "endpointId": {
      -            "description": "Port OS endpoint ID involved in the failed dispatch.",
      -            "type": "string"
      -          },
      -          "fieldErrors": {
      -            "description": "The request fields that were rejected, when the error is about the request's content.",
      -            "items": {
      -              "description": "One rejected request field of an error.",
      -              "properties": {
      -                "field": {
      -                  "description": "Name or JSON path of the rejected field.",
      -                  "type": "string"
      -                },
      -                "reason": {
      -                  "description": "Why the field was rejected and what an accepted value looks like.",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "field",
      -                "reason"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "maximum": {
      -            "description": "Maximum accepted value when `code` is `VALUE_OUT_OF_RANGE`.",
      -            "type": "number"
      -          },
      -          "minimum": {
      -            "description": "Minimum accepted value when `code` is `VALUE_OUT_OF_RANGE`.",
      -            "type": "number"
      -          },
      -          "parameter": {
      -            "description": "Request parameter or capability value that caused the failure.",
      -            "type": "string"
      -          },
      -          "pluginId": {
      -            "description": "Port OS plugin ID that reported the failure.",
      -            "type": "string"
      -          },
      -          "pluginRouteId": {
      -            "description": "Plugin-owned route identifier involved in the failed dispatch.",
      -            "type": "string"
      -          },
      -          "provider": {
      -            "description": "Third-party provider or bridge name that reported the failure.",
      -            "type": "string"
      -          },
      -          "providerCode": {
      -            "description": "The third-party provider's own error code, for support. It is opaque and provider-specific; branch on `code` and `family` instead.",
      -            "type": "string"
      -          },
      -          "retryAfterSeconds": {
      -            "description": "Suggested retry delay for rate-limit or provider-unavailable failures.",
      -            "minimum": 0,
      -            "type": "integer"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "errors": {
      -        "description": "Every rejected item when a request that is validated item by item and applied atomically fails, such as a discovery `SynchronizationRequest` whose routes, group routes or relationships are rejected. Omitted for single-item failures.\n",
      -        "items": {
      -          "description": "One rejected discovery item of a `SynchronizationRequest`, keyed by the plugin-owned identity of the rejected item: `pluginRouteId` for a route or group route, or `relationshipExternalId` for a relationship. Exactly one of the two is set. It shares the `code`, `family`, `status` and `message` fields of `BatchItemError`; discovery items are keyed by plugin-owned identity because they carry no `requestId`. A request with any rejected item is rejected as a whole and lists every rejected item.\n",
      -          "properties": {
      -            "code": {
      -              "description": "The specific error, one of a closed set of Port OS codes. Every REST error body, MCP tool error, batch item error and discovery item error uses this enum; each code belongs to an `ErrorFamily` that decides its HTTP status. Provider-specific codes are never codes: they travel in `details.providerCode`. New failure kinds are added here, never as free strings.",
      -              "enum": [
      -                "BAD_REQUEST",
      -                "UNAUTHORIZED",
      -                "FORBIDDEN",
      -                "INSUFFICIENT_SCOPE",
      -                "NOT_FOUND",
      -                "CONFLICT",
      -                "UNPROCESSABLE_ENTITY",
      -                "UNSUPPORTED_OPERATION",
      -                "TOO_MANY_REQUESTS",
      -                "SERVICE_UNAVAILABLE",
      -                "NOT_IMPLEMENTED",
      -                "INTERNAL",
      -                "CHECKSUM_MISMATCH",
      -                "FILE_TOO_LARGE",
      -                "STORAGE_UNAVAILABLE",
      -                "INSUFFICIENT_PERMISSIONS",
      -                "INVALID_FILE_TYPE",
      -                "QUOTA_EXCEEDED",
      -                "CONCURRENT_MODIFICATION",
      -                "ENDPOINT_UNREACHABLE",
      -                "BRIDGE_UNREACHABLE",
      -                "CLOUD_CONTROL_DISABLED",
      -                "ENDPOINT_BUSY",
      -                "ENDPOINT_LOW_POWER",
      -                "AUTHORIZATION_CREDENTIAL_INVALID",
      -                "AUTHORIZATION_CREDENTIAL_EXPIRED",
      -                "INVALID_DIRECTIVE",
      -                "INVALID_VALUE",
      -                "VALUE_OUT_OF_RANGE",
      -                "NOT_SUPPORTED_IN_CURRENT_MODE",
      -                "RATE_LIMIT_EXCEEDED",
      -                "PROVIDER_SERVICE_UNAVAILABLE",
      -                "PROVIDER_TIMEOUT",
      -                "PROVIDER_INTERNAL_ERROR",
      -                "INVALID_PROVIDER_RESPONSE",
      -                "OUTCOME_UNKNOWN",
      -                "PRECONDITION_FAILED",
      -                "AUTH_LINK_NOT_READY",
      -                "AUTH_LINK_NOT_DISCONNECTABLE",
      -                "PRECONDITION_REQUIRED",
      -                "IDEMPOTENCY_KEY_REQUIRED",
      -                "IDEMPOTENCY_KEY_REUSED",
      -                "IDEMPOTENCY_KEY_IN_FLIGHT",
      -                "IDEMPOTENCY_KEY_INVALID",
      -                "GROUP_MERGED",
      -                "MULTI_ROOM_UNSUPPORTED",
      -                "MAP_NOT_ACTIVE",
      -                "TARGET_UNSUPPORTED",
      -                "TARGET_AMBIGUOUS",
      -                "TARGET_GROUP_NOT_FOUND",
      -                "TARGET_GROUP_DISABLED",
      -                "DUPLICATE_TARGET_GROUP",
      -                "MESSAGE_UNSUPPORTED",
      -                "MESSAGE_AMBIGUOUS",
      -                "ENDPOINT_DISABLED",
      -                "ENDPOINT_ROUTE_CHANGED",
      -                "ENDPOINT_HAS_DEPENDENCIES",
      -                "ENDPOINT_EVENT_SUBSCRIPTIONS_ACTIVE",
      -                "ENDPOINT_COMMITTED_CLEANUP_PENDING",
      -                "DEEP_QUERY_FAILED",
      -                "PROVIDER_NO_STATE",
      -                "EVENT_MANAGEMENT_DISABLED",
      -                "SUBSCRIPTION_IDENTITY_IMMUTABLE",
      -                "UNSUPPORTED_MEDIA_TYPE",
      -                "EVENT_PAYLOAD_TOO_LARGE",
      -                "REQUEST_BODY_TOO_LARGE",
      -                "EVENT_IDENTITY_CONFLICT",
      -                "EVENT_INGRESS_QUOTA_EXCEEDED",
      -                "EVENT_RECEIPT_EXPIRED",
      -                "EVENT_STORAGE_UNAVAILABLE",
      -                "EVENT_DEAD_LETTER_NOT_FOUND",
      -                "EVENT_REDRIVE_CONFLICT",
      -                "EVENT_REDRIVE_EXPIRED",
      -                "RECEIPT_CONTEXT_EXPIRED",
      -                "EVENT_MAINTENANCE_INCOMPLETE",
      -                "UNKNOWN_INTERFACE",
      -                "INVALID_CONFIGURATION",
      -                "INVALID_PLUGIN_MANIFEST",
      -                "INVALID_ATTRIBUTE",
      -                "INVALID_PROVIDER_MESSAGE",
      -                "UNDECLARED_CAPABILITY",
      -                "PLUGIN_ROUTE_ID_CONFLICT",
      -                "UNRESOLVED_REFERENCE",
      -                "INVALID_RELATIONSHIP",
      -                "RELATIONSHIP_CYCLE",
      -                "MULTIPLE_PARENTS",
      -                "FLOW_VALIDATION_FAILED",
      -                "PROVIDER_SYNC_UNSUPPORTED"
      -              ],
      -              "type": "string"
      -            },
      -            "family": {
      -              "description": "The broad class of an error. The family decides the HTTP status of a REST error, so clients can handle every code of a family alike.",
      -              "enum": [
      -                "NOT_FOUND",
      -                "BAD_REQUEST",
      -                "UNAUTHORIZED",
      -                "FORBIDDEN",
      -                "CONFLICT",
      -                "GONE",
      -                "PRECONDITION_FAILED",
      -                "PRECONDITION_REQUIRED",
      -                "PAYLOAD_TOO_LARGE",
      -                "UNSUPPORTED_MEDIA_TYPE",
      -                "UNPROCESSABLE_ENTITY",
      -                "LOCKED",
      -                "TOO_MANY_REQUESTS",
      -                "BAD_GATEWAY",
      -                "SERVICE_UNAVAILABLE",
      -                "GATEWAY_TIMEOUT",
      -                "NOT_IMPLEMENTED",
      -                "INTERNAL_SERVER_ERROR",
      -                "REQUEST_INVALID",
      -                "AUTHENTICATION",
      -                "PERMISSION",
      -                "ENDPOINT_NOT_FOUND",
      -                "ENDPOINT_STATE_CONFLICT",
      -                "ENDPOINT_UNAVAILABLE",
      -                "RATE_LIMIT",
      -                "PROVIDER_BAD_RESPONSE",
      -                "PROVIDER_UNAVAILABLE",
      -                "PROVIDER_TIMEOUT"
      -              ],
      -              "type": "string"
      -            },
      -            "interface": {
      -              "description": "Canonical capability interface name the failure applies to, when the failure is interface-specific.",
      -              "type": "string"
      -            },
      -            "message": {
      -              "description": "Plain-language description of the failure and the suggested fix.",
      -              "type": "string"
      -            },
      -            "pluginRouteId": {
      -              "description": "Plugin-owned identifier of the rejected route or group route. Set unless the item is a relationship.",
      -              "type": "string"
      -            },
      -            "relationshipExternalId": {
      -              "description": "Plugin-owned `externalId` of the rejected relationship. Set only for relationship items.",
      -              "type": "string"
      -            },
      -            "status": {
      -              "description": "HTTP-equivalent status code of the item failure.",
      -              "maximum": 599,
      -              "minimum": 400,
      -              "type": "integer"
      -            },
      -            "version": {
      -              "description": "Declared capability interface version the failure applies to, when the failure is interface-specific.",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "code",
      -            "family",
      -            "status",
      -            "message"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "family": {
      -        "description": "The broad class of an error. The family decides the HTTP status of a REST error, so clients can handle every code of a family alike.",
      -        "enum": [
      -          "NOT_FOUND",
      -          "BAD_REQUEST",
      -          "UNAUTHORIZED",
      -          "FORBIDDEN",
      -          "CONFLICT",
      -          "GONE",
      -          "PRECONDITION_FAILED",
      -          "PRECONDITION_REQUIRED",
      -          "PAYLOAD_TOO_LARGE",
      -          "UNSUPPORTED_MEDIA_TYPE",
      -          "UNPROCESSABLE_ENTITY",
      -          "LOCKED",
      -          "TOO_MANY_REQUESTS",
      -          "BAD_GATEWAY",
      -          "SERVICE_UNAVAILABLE",
      -          "GATEWAY_TIMEOUT",
      -          "NOT_IMPLEMENTED",
      -          "INTERNAL_SERVER_ERROR",
      -          "REQUEST_INVALID",
      -          "AUTHENTICATION",
      -          "PERMISSION",
      -          "ENDPOINT_NOT_FOUND",
      -          "ENDPOINT_STATE_CONFLICT",
      -          "ENDPOINT_UNAVAILABLE",
      -          "RATE_LIMIT",
      -          "PROVIDER_BAD_RESPONSE",
      -          "PROVIDER_UNAVAILABLE",
      -          "PROVIDER_TIMEOUT"
      -        ],
      -        "type": "string"
      -      },
      -      "message": {
      -        "description": "Plain-language description of the failure and the suggested next action.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "family",
      -      "code",
      -      "message"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "description": "A subscription is a way to listen to events",
      +    "properties": {
      +      "context": {
      +        "additionalProperties": true,
      +        "description": "Structured filter criteria for granular device event matching. Keys are dot-notation paths into the message (e.g., \"header.namespace\", \"header.name\"). Values are the expected values to match. All context entries must match for the subscription to fire. Omitting context matches all events.\n",
      +        "type": "object"
      +      },
      +      "etag": {
      +        "description": "Opaque strong entity tag of the stored subscription version.",
      +        "type": "string"
      +      },
      +      "eventQueryProfile": {
      +        "description": "Supported typed event query validation profile, when this is an event monitor.",
      +        "type": "string"
      +      },
      +      "expiresAt": {
      +        "description": "Finite expiration; null means indefinite.",
      +        "format": "date-time",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "id": {
      +        "description": "The unique identifier for the subscription",
      +        "type": "string"
      +      },
      +      "name": {
      +        "properties": {
      +          "type": {
      +            "description": "The type identifier of the name value, defined as plain when not defined.",
      +            "type": "string"
      +          },
      +          "value": {
      +            "description": "the raw value of a plain name.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "type",
      +          "value"
      +        ],
      +        "type": "object"
      +      },
      +      "owner": {
      +        "description": "The owner of the subscription",
      +        "type": "string"
      +      },
      +      "query": {
      +        "description": "Shared Port OS query AST modeled as a recursive JSON graph supporting match, comparison, pattern, freeform, and boolean operators.",
      +        "properties": {
      +          "and": {
      +            "description": "match all fields in the array",
      +            "items": {
      +              "$ref": "#/$defs/Query"
      +            },
      +            "type": "array"
      +          },
      +          "freeformMatch": {
      +            "description": "Freeform query string for natural language searches",
      +            "type": "string"
      +          },
      +          "greaterThan": {
      +            "allOf": [
      +              {
      +                "properties": {
      +                  "key": {
      +                    "description": "The key to match on",
      +                    "type": "string"
      +                  },
      +                  "value": {
      +                    "description": "The value to match on",
      +                    "type": "string"
      +                  }
      +                },
      +                "type": "object"
      +              }
      +            ],
      +            "description": "Greater than comparison"
      +          },
      +          "lessThan": {
      +            "allOf": [
      +              {
      +                "properties": {
      +                  "key": {
      +                    "description": "The key to match on",
      +                    "type": "string"
      +                  },
      +                  "value": {
      +                    "description": "The value to match on",
      +                    "type": "string"
      +                  }
      +                },
      +                "type": "object"
      +              }
      +            ],
      +            "description": "Less than comparison"
      +          },
      +          "match": {
      +            "allOf": [
      +              {
      +                "properties": {
      +                  "key": {
      +                    "description": "The key to match on",
      +                    "type": "string"
      +                  },
      +                  "value": {
      +                    "description": "The value to match on",
      +                    "type": "string"
      +                  }
      +                },
      +                "type": "object"
      +              }
      +            ],
      +            "description": "Match data between fields"
      +          },
      +          "not": {
      +            "allOf": [
      +              {
      +                "$ref": "#/$defs/Query"
      +              }
      +            ],
      +            "description": "Negate the inner query (NOT wraps a single child query)"
      +          },
      +          "or": {
      +            "items": {
      +              "$ref": "#/$defs/Query"
      +            },
      +            "type": "array"
      +          },
      +          "patternMatch": {
      +            "description": "Pattern for REGEX queries (e.g., \"*.json\")",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "reasonCode": {
      +        "description": "Redacted stable lifecycle reason, when applicable.",
      +        "type": "string"
      +      },
      +      "status": {
      +        "description": "Event monitor lifecycle.",
      +        "enum": [
      +          "ACTIVE",
      +          "PAUSED",
      +          "SUSPENDED",
      +          "EXPIRED",
      +          "STOPPED"
      +        ],
      +        "type": "string"
      +      },
      +      "target": {
      +        "properties": {
      +          "cookie": {
      +            "additionalProperties": true,
      +            "description": "Abstract blob of contextual information necessary to dispatch a message to an endpoint.",
      +            "type": "object"
      +          },
      +          "groupRoutes": {
      +            "description": "Group routes Port OS selected for this dispatch, in the order the message requested them (for example the rooms of a clean-room message). Only Port OS sets this field; a value supplied by an API client is discarded.",
      +            "items": {
      +              "allOf": [
      +                {
      +                  "description": "A group route Port OS resolved for this dispatch. The plugin addresses it by its own pluginRouteId and cookie (the group route's pluginCustomMetadata).",
      +                  "properties": {
      +                    "cookie": {
      +                      "additionalProperties": true,
      +                      "description": "The group route's pluginCustomMetadata, as reported in discovery.",
      +                      "type": "object"
      +                    },
      +                    "groupId": {
      +                      "description": "Canonical endpoint group the group route belongs to, after merge redirects.",
      +                      "type": "string"
      +                    },
      +                    "id": {
      +                      "description": "Typed group-route ID (…/endpoint-group-routes/…).",
      +                      "type": "string"
      +                    },
      +                    "pluginRouteId": {
      +                      "description": "The plugin's own identifier for the group route, as reported in discovery.",
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "id",
      +                    "groupId",
      +                    "pluginRouteId"
      +                  ],
      +                  "type": "object"
      +                },
      +                {
      +                  "properties": {
      +                    "parent": {
      +                      "description": "A group route Port OS resolved for this dispatch. The plugin addresses it by its own pluginRouteId and cookie (the group route's pluginCustomMetadata).",
      +                      "properties": {
      +                        "cookie": {
      +                          "additionalProperties": true,
      +                          "description": "The group route's pluginCustomMetadata, as reported in discovery.",
      +                          "type": "object"
      +                        },
      +                        "groupId": {
      +                          "description": "Canonical endpoint group the group route belongs to, after merge redirects.",
      +                          "type": "string"
      +                        },
      +                        "id": {
      +                          "description": "Typed group-route ID (…/endpoint-group-routes/…).",
      +                          "type": "string"
      +                        },
      +                        "pluginRouteId": {
      +                          "description": "The plugin's own identifier for the group route, as reported in discovery.",
      +                          "type": "string"
      +                        }
      +                      },
      +                      "required": [
      +                        "id",
      +                        "groupId",
      +                        "pluginRouteId"
      +                      ],
      +                      "type": "object"
      +                    }
      +                  },
      +                  "type": "object"
      +                }
      +              ],
      +              "description": "A group route selected for this dispatch, for example a room the robot can clean, with its IS_PART_OF parent (for example the room's map) when it has one."
      +            },
      +            "type": "array"
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "type": {
      +            "enum": [
      +              "ENDPOINT",
      +              "PLUGIN",
      +              "GROUP",
      +              "FLOW",
      +              "CONTROL_ROUTE",
      +              "MCP_EVENT_BINDING"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "query",
      +      "target",
      +      "etag"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "The one Port OS error shape, returned by every REST error response and every MCP tool error. `code` names the specific failure and `family` its broad class; both are closed enums, so clients branch on them and show `message`, which says what failed and what to do next.",
      +    "properties": {
      +      "code": {
      +        "description": "The specific error, one of a closed set of Port OS codes. Every REST error body, MCP tool error, batch item error and discovery item error uses this enum; each code belongs to an `ErrorFamily` that decides its HTTP status. Provider-specific codes are never codes: they travel in `details.providerCode`. New failure kinds are added here, never as free strings.",
      +        "enum": [
      +          "BAD_REQUEST",
      +          "UNAUTHORIZED",
      +          "FORBIDDEN",
      +          "INSUFFICIENT_SCOPE",
      +          "NOT_FOUND",
      +          "CONFLICT",
      +          "UNPROCESSABLE_ENTITY",
      +          "UNSUPPORTED_OPERATION",
      +          "TOO_MANY_REQUESTS",
      +          "SERVICE_UNAVAILABLE",
      +          "NOT_IMPLEMENTED",
      +          "INTERNAL",
      +          "CHECKSUM_MISMATCH",
      +          "FILE_TOO_LARGE",
      +          "STORAGE_UNAVAILABLE",
      +          "INSUFFICIENT_PERMISSIONS",
      +          "INVALID_FILE_TYPE",
      +          "QUOTA_EXCEEDED",
      +          "CONCURRENT_MODIFICATION",
      +          "ENDPOINT_UNREACHABLE",
      +          "BRIDGE_UNREACHABLE",
      +          "CLOUD_CONTROL_DISABLED",
      +          "ENDPOINT_BUSY",
      +          "ENDPOINT_LOW_POWER",
      +          "AUTHORIZATION_CREDENTIAL_INVALID",
      +          "AUTHORIZATION_CREDENTIAL_EXPIRED",
      +          "INVALID_DIRECTIVE",
      +          "INVALID_VALUE",
      +          "VALUE_OUT_OF_RANGE",
      +          "NOT_SUPPORTED_IN_CURRENT_MODE",
      +          "RATE_LIMIT_EXCEEDED",
      +          "PROVIDER_SERVICE_UNAVAILABLE",
      +          "PROVIDER_TIMEOUT",
      +          "PROVIDER_INTERNAL_ERROR",
      +          "INVALID_PROVIDER_RESPONSE",
      +          "OUTCOME_UNKNOWN",
      +          "PRECONDITION_FAILED",
      +          "AUTH_LINK_NOT_READY",
      +          "AUTH_LINK_NOT_DISCONNECTABLE",
      +          "PRECONDITION_REQUIRED",
      +          "IDEMPOTENCY_KEY_REQUIRED",
      +          "IDEMPOTENCY_KEY_REUSED",
      +          "IDEMPOTENCY_KEY_IN_FLIGHT",
      +          "IDEMPOTENCY_KEY_INVALID",
      +          "GROUP_MERGED",
      +          "MULTI_ROOM_UNSUPPORTED",
      +          "MAP_NOT_ACTIVE",
      +          "TARGET_UNSUPPORTED",
      +          "TARGET_AMBIGUOUS",
      +          "TARGET_GROUP_NOT_FOUND",
      +          "TARGET_GROUP_DISABLED",
      +          "DUPLICATE_TARGET_GROUP",
      +          "MESSAGE_UNSUPPORTED",
      +          "MESSAGE_AMBIGUOUS",
      +          "ENDPOINT_DISABLED",
      +          "ENDPOINT_ROUTE_CHANGED",
      +          "ENDPOINT_HAS_DEPENDENCIES",
      +          "ENDPOINT_EVENT_SUBSCRIPTIONS_ACTIVE",
      +          "ENDPOINT_COMMITTED_CLEANUP_PENDING",
      +          "DEEP_QUERY_FAILED",
      +          "PROVIDER_NO_STATE",
      +          "EVENT_MANAGEMENT_DISABLED",
      +          "SUBSCRIPTION_IDENTITY_IMMUTABLE",
      +          "UNSUPPORTED_MEDIA_TYPE",
      +          "EVENT_PAYLOAD_TOO_LARGE",
      +          "REQUEST_BODY_TOO_LARGE",
      +          "EVENT_IDENTITY_CONFLICT",
      +          "EVENT_INGRESS_QUOTA_EXCEEDED",
      +          "EVENT_RECEIPT_EXPIRED",
      +          "EVENT_STORAGE_UNAVAILABLE",
      +          "EVENT_DEAD_LETTER_NOT_FOUND",
      +          "EVENT_REDRIVE_CONFLICT",
      +          "EVENT_REDRIVE_EXPIRED",
      +          "RECEIPT_CONTEXT_EXPIRED",
      +          "EVENT_MAINTENANCE_INCOMPLETE",
      +          "UNKNOWN_INTERFACE",
      +          "INVALID_CONFIGURATION",
      +          "INVALID_PLUGIN_MANIFEST",
      +          "INVALID_ATTRIBUTE",
      +          "INVALID_PROVIDER_MESSAGE",
      +          "UNDECLARED_CAPABILITY",
      +          "PLUGIN_ROUTE_ID_CONFLICT",
      +          "UNRESOLVED_REFERENCE",
      +          "INVALID_RELATIONSHIP",
      +          "RELATIONSHIP_CYCLE",
      +          "MULTIPLE_PARENTS",
      +          "FLOW_VALIDATION_FAILED",
      +          "PROVIDER_SYNC_UNSUPPORTED"
      +        ],
      +        "type": "string"
      +      },
      +      "details": {
      +        "description": "Optional typed context for an error. Fields are additive and only populated when the error can safely expose that context to API clients.\n",
      +        "properties": {
      +          "actual": {
      +            "description": "String representation of the submitted value when the plugin can safely report it.",
      +            "type": "string"
      +          },
      +          "correlationId": {
      +            "description": "Provider or plugin correlation ID useful for support.",
      +            "type": "string"
      +          },
      +          "correlationToken": {
      +            "description": "Token that correlates an outcome-unknown dispatch with its eventual result.",
      +            "type": "string"
      +          },
      +          "currentMode": {
      +            "description": "Current endpoint mode when `code` is `NOT_SUPPORTED_IN_CURRENT_MODE`.",
      +            "type": "string"
      +          },
      +          "directive": {
      +            "description": "Message namespace and name or provider directive that failed.",
      +            "type": "string"
      +          },
      +          "discoveryEndpointId": {
      +            "description": "Port OS provider endpoint (type ENDPOINT_PLUGIN) of the connection to send `discover-routes` to when `code` is `TARGET_UNSUPPORTED` because the route must be rediscovered.",
      +            "type": "string"
      +          },
      +          "endpointId": {
      +            "description": "Port OS endpoint ID involved in the failed dispatch.",
      +            "type": "string"
      +          },
      +          "fieldErrors": {
      +            "description": "The request fields that were rejected, when the error is about the request's content.",
      +            "items": {
      +              "description": "One rejected request field of an error.",
      +              "properties": {
      +                "field": {
      +                  "description": "Name or JSON path of the rejected field.",
      +                  "type": "string"
      +                },
      +                "reason": {
      +                  "description": "Why the field was rejected and what an accepted value looks like.",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "field",
      +                "reason"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "maximum": {
      +            "description": "Maximum accepted value when `code` is `VALUE_OUT_OF_RANGE`.",
      +            "type": "number"
      +          },
      +          "minimum": {
      +            "description": "Minimum accepted value when `code` is `VALUE_OUT_OF_RANGE`.",
      +            "type": "number"
      +          },
      +          "parameter": {
      +            "description": "Request parameter or capability value that caused the failure.",
      +            "type": "string"
      +          },
      +          "pluginId": {
      +            "description": "Port OS plugin ID that reported the failure.",
      +            "type": "string"
      +          },
      +          "pluginRouteId": {
      +            "description": "Plugin-owned route identifier involved in the failed dispatch.",
      +            "type": "string"
      +          },
      +          "provider": {
      +            "description": "Third-party provider or bridge name that reported the failure.",
      +            "type": "string"
      +          },
      +          "providerCode": {
      +            "description": "The third-party provider's own error code, for support. It is opaque and provider-specific; branch on `code` and `family` instead.",
      +            "type": "string"
      +          },
      +          "retryAfterSeconds": {
      +            "description": "Suggested retry delay for rate-limit or provider-unavailable failures.",
      +            "minimum": 0,
      +            "type": "integer"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "errors": {
      +        "description": "Every rejected item when a request that is validated item by item and applied atomically fails, such as a discovery `SynchronizationRequest` whose routes, group routes or relationships are rejected. Omitted for single-item failures.\n",
      +        "items": {
      +          "description": "One rejected discovery item of a `SynchronizationRequest`, keyed by the plugin-owned identity of the rejected item: `pluginRouteId` for a route or group route, or `relationshipExternalId` for a relationship. Exactly one of the two is set. It shares the `code`, `family`, `status` and `message` fields of `BatchItemError`; discovery items are keyed by plugin-owned identity because they carry no `requestId`. A request with any rejected item is rejected as a whole and lists every rejected item.\n",
      +          "properties": {
      +            "code": {
      +              "description": "The specific error, one of a closed set of Port OS codes. Every REST error body, MCP tool error, batch item error and discovery item error uses this enum; each code belongs to an `ErrorFamily` that decides its HTTP status. Provider-specific codes are never codes: they travel in `details.providerCode`. New failure kinds are added here, never as free strings.",
      +              "enum": [
      +                "BAD_REQUEST",
      +                "UNAUTHORIZED",
      +                "FORBIDDEN",
      +                "INSUFFICIENT_SCOPE",
      +                "NOT_FOUND",
      +                "CONFLICT",
      +                "UNPROCESSABLE_ENTITY",
      +                "UNSUPPORTED_OPERATION",
      +                "TOO_MANY_REQUESTS",
      +                "SERVICE_UNAVAILABLE",
      +                "NOT_IMPLEMENTED",
      +                "INTERNAL",
      +                "CHECKSUM_MISMATCH",
      +                "FILE_TOO_LARGE",
      +                "STORAGE_UNAVAILABLE",
      +                "INSUFFICIENT_PERMISSIONS",
      +                "INVALID_FILE_TYPE",
      +                "QUOTA_EXCEEDED",
      +                "CONCURRENT_MODIFICATION",
      +                "ENDPOINT_UNREACHABLE",
      +                "BRIDGE_UNREACHABLE",
      +                "CLOUD_CONTROL_DISABLED",
      +                "ENDPOINT_BUSY",
      +                "ENDPOINT_LOW_POWER",
      +                "AUTHORIZATION_CREDENTIAL_INVALID",
      +                "AUTHORIZATION_CREDENTIAL_EXPIRED",
      +                "INVALID_DIRECTIVE",
      +                "INVALID_VALUE",
      +                "VALUE_OUT_OF_RANGE",
      +                "NOT_SUPPORTED_IN_CURRENT_MODE",
      +                "RATE_LIMIT_EXCEEDED",
      +                "PROVIDER_SERVICE_UNAVAILABLE",
      +                "PROVIDER_TIMEOUT",
      +                "PROVIDER_INTERNAL_ERROR",
      +                "INVALID_PROVIDER_RESPONSE",
      +                "OUTCOME_UNKNOWN",
      +                "PRECONDITION_FAILED",
      +                "AUTH_LINK_NOT_READY",
      +                "AUTH_LINK_NOT_DISCONNECTABLE",
      +                "PRECONDITION_REQUIRED",
      +                "IDEMPOTENCY_KEY_REQUIRED",
      +                "IDEMPOTENCY_KEY_REUSED",
      +                "IDEMPOTENCY_KEY_IN_FLIGHT",
      +                "IDEMPOTENCY_KEY_INVALID",
      +                "GROUP_MERGED",
      +                "MULTI_ROOM_UNSUPPORTED",
      +                "MAP_NOT_ACTIVE",
      +                "TARGET_UNSUPPORTED",
      +                "TARGET_AMBIGUOUS",
      +                "TARGET_GROUP_NOT_FOUND",
      +                "TARGET_GROUP_DISABLED",
      +                "DUPLICATE_TARGET_GROUP",
      +                "MESSAGE_UNSUPPORTED",
      +                "MESSAGE_AMBIGUOUS",
      +                "ENDPOINT_DISABLED",
      +                "ENDPOINT_ROUTE_CHANGED",
      +                "ENDPOINT_HAS_DEPENDENCIES",
      +                "ENDPOINT_EVENT_SUBSCRIPTIONS_ACTIVE",
      +                "ENDPOINT_COMMITTED_CLEANUP_PENDING",
      +                "DEEP_QUERY_FAILED",
      +                "PROVIDER_NO_STATE",
      +                "EVENT_MANAGEMENT_DISABLED",
      +                "SUBSCRIPTION_IDENTITY_IMMUTABLE",
      +                "UNSUPPORTED_MEDIA_TYPE",
      +                "EVENT_PAYLOAD_TOO_LARGE",
      +                "REQUEST_BODY_TOO_LARGE",
      +                "EVENT_IDENTITY_CONFLICT",
      +                "EVENT_INGRESS_QUOTA_EXCEEDED",
      +                "EVENT_RECEIPT_EXPIRED",
      +                "EVENT_STORAGE_UNAVAILABLE",
      +                "EVENT_DEAD_LETTER_NOT_FOUND",
      +                "EVENT_REDRIVE_CONFLICT",
      +                "EVENT_REDRIVE_EXPIRED",
      +                "RECEIPT_CONTEXT_EXPIRED",
      +                "EVENT_MAINTENANCE_INCOMPLETE",
      +                "UNKNOWN_INTERFACE",
      +                "INVALID_CONFIGURATION",
      +                "INVALID_PLUGIN_MANIFEST",
      +                "INVALID_ATTRIBUTE",
      +                "INVALID_PROVIDER_MESSAGE",
      +                "UNDECLARED_CAPABILITY",
      +                "PLUGIN_ROUTE_ID_CONFLICT",
      +                "UNRESOLVED_REFERENCE",
      +                "INVALID_RELATIONSHIP",
      +                "RELATIONSHIP_CYCLE",
      +                "MULTIPLE_PARENTS",
      +                "FLOW_VALIDATION_FAILED",
      +                "PROVIDER_SYNC_UNSUPPORTED"
      +              ],
      +              "type": "string"
      +            },
      +            "family": {
      +              "description": "The broad class of an error. The family decides the HTTP status of a REST error, so clients can handle every code of a family alike.",
      +              "enum": [
      +                "NOT_FOUND",
      +                "BAD_REQUEST",
      +                "UNAUTHORIZED",
      +                "FORBIDDEN",
      +                "CONFLICT",
      +                "GONE",
      +                "PRECONDITION_FAILED",
      +                "PRECONDITION_REQUIRED",
      +                "PAYLOAD_TOO_LARGE",
      +                "UNSUPPORTED_MEDIA_TYPE",
      +                "UNPROCESSABLE_ENTITY",
      +                "LOCKED",
      +                "TOO_MANY_REQUESTS",
      +                "BAD_GATEWAY",
      +                "SERVICE_UNAVAILABLE",
      +                "GATEWAY_TIMEOUT",
      +                "NOT_IMPLEMENTED",
      +                "INTERNAL_SERVER_ERROR",
      +                "REQUEST_INVALID",
      +                "AUTHENTICATION",
      +                "PERMISSION",
      +                "ENDPOINT_NOT_FOUND",
      +                "ENDPOINT_STATE_CONFLICT",
      +                "ENDPOINT_UNAVAILABLE",
      +                "RATE_LIMIT",
      +                "PROVIDER_BAD_RESPONSE",
      +                "PROVIDER_UNAVAILABLE",
      +                "PROVIDER_TIMEOUT"
      +              ],
      +              "type": "string"
      +            },
      +            "interface": {
      +              "description": "Canonical capability interface name the failure applies to, when the failure is interface-specific.",
      +              "type": "string"
      +            },
      +            "message": {
      +              "description": "Plain-language description of the failure and the suggested fix.",
      +              "type": "string"
      +            },
      +            "pluginRouteId": {
      +              "description": "Plugin-owned identifier of the rejected route or group route. Set unless the item is a relationship.",
      +              "type": "string"
      +            },
      +            "relationshipExternalId": {
      +              "description": "Plugin-owned `externalId` of the rejected relationship. Set only for relationship items.",
      +              "type": "string"
      +            },
      +            "status": {
      +              "description": "HTTP-equivalent status code of the item failure.",
      +              "maximum": 599,
      +              "minimum": 400,
      +              "type": "integer"
      +            },
      +            "version": {
      +              "description": "Declared capability interface version the failure applies to, when the failure is interface-specific.",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "code",
      +            "family",
      +            "status",
      +            "message"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "family": {
      +        "description": "The broad class of an error. The family decides the HTTP status of a REST error, so clients can handle every code of a family alike.",
      +        "enum": [
      +          "NOT_FOUND",
      +          "BAD_REQUEST",
      +          "UNAUTHORIZED",
      +          "FORBIDDEN",
      +          "CONFLICT",
      +          "GONE",
      +          "PRECONDITION_FAILED",
      +          "PRECONDITION_REQUIRED",
      +          "PAYLOAD_TOO_LARGE",
      +          "UNSUPPORTED_MEDIA_TYPE",
      +          "UNPROCESSABLE_ENTITY",
      +          "LOCKED",
      +          "TOO_MANY_REQUESTS",
      +          "BAD_GATEWAY",
      +          "SERVICE_UNAVAILABLE",
      +          "GATEWAY_TIMEOUT",
      +          "NOT_IMPLEMENTED",
      +          "INTERNAL_SERVER_ERROR",
      +          "REQUEST_INVALID",
      +          "AUTHENTICATION",
      +          "PERMISSION",
      +          "ENDPOINT_NOT_FOUND",
      +          "ENDPOINT_STATE_CONFLICT",
      +          "ENDPOINT_UNAVAILABLE",
      +          "RATE_LIMIT",
      +          "PROVIDER_BAD_RESPONSE",
      +          "PROVIDER_UNAVAILABLE",
      +          "PROVIDER_TIMEOUT"
      +        ],
      +        "type": "string"
      +      },
      +      "message": {
      +        "description": "Plain-language description of the failure and the suggested next action.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "family",
      +      "code",
      +      "message"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare this is a non-destructive, idempotent write, so the bar is lower, but the description adds real value by naming exactly which fields are immutable and thereby bounding what the mutation can destroy. It does not mention the ifMatch concurrency precondition or the need to read the current etag first, leaving that workflow detail to the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, both earning their place: the first pins scope and the second both constrains input shape and redirects the wrong use case. The scope limitation is front-loaded and there is no filler.

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?

For a four-required-parameter mutation with a nested object and an output schema, the description covers purpose, immutability bounds and the alternative pathway. The only shortfall is the read-then-write etag workflow, which the ifMatch schema description hints at but the description never ties together.

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?

With 75% schema coverage, three of four parameters are already documented, and the one gap, the nested 'name' object, is directly addressed by 'Use a PLAIN name-value object. The description thus compensates for the undocumented field rather than restating the schema.

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?

The description states a specific verb and resource scoped precisely: 'Change only the display name of one Port OS event subscription by exact ID.' The word 'only' plus the immutability sentence clearly separates it from sibling tools such as endpoint_manage or subscription_cancel, so an agent can pick it 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?

It gives both implicit exclusions (event, endpoint, filter and destination cannot be changed here) and the explicit alternative when the watched target must change: create a replacement monitor and cancel the old ID, which points at the subscription_cancel sibling. Nothing about when to prefer this route is left to inference.

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