---
title: "MTRResponseCommandNameForID(_:_:)"
framework: matter
role: symbol
role_heading: Function
path: "matter/mtrresponsecommandnameforid(_:_:)"
---

# MTRResponseCommandNameForID(_:_:)

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

## Declaration

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

## Discussion

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.
