<!--
{
  "availability" : [
    "iOS: 18.2.0 -",
    "iPadOS: 18.2.0 -",
    "macCatalyst: 18.2.0 -",
    "macOS: 15.2.0 -",
    "tvOS: 18.2.0 -",
    "visionOS: 2.2.0 -",
    "watchOS: 11.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Matter",
  "identifier" : "/documentation/Matter/MTRResponseCommandNameForID(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Matter"
    ],
    "preciseIdentifier" : "c:@F@MTRResponseCommandNameForID"
  },
  "title" : "MTRResponseCommandNameForID(_:_:)"
}
-->

# MTRResponseCommandNameForID(_:_:)

Resolve Matter response (server to client) command IDs into a descriptive string.

```
func MTRResponseCommandNameForID(_ clusterID: MTRClusterIDType, _ commandID: MTRCommandIDType) -> String!
```

## Discussion

For unknown IDs, a string ‘<Unknown clusterID %d>’ (if the cluster ID is not known)
or ‘<Unknown commandID %d>’ (if the cluster ID is known but the command ID is not known)
will be returned.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)