---
title: "MTRRequestCommandNameForID(_:_:)"
framework: matter
role: symbol
role_heading: Function
path: "matter/mtrrequestcommandnameforid(_:_:)"
---

# MTRRequestCommandNameForID(_:_:)

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

## Declaration

```swift
func MTRRequestCommandNameForID(_ 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.
