What is UE Context Modification Response in 5G NGAP?

It is the NG-RAN-to-AMF message confirming that requested modifications to an established UE context were processed.

What are the mandatory IEs in UE Context Modification Response?

AMF UE NGAP ID and RAN UE NGAP ID are mandatory so AMF can correlate the response with the correct UE context.

Can UE Context Modification Response include useful state information?

Yes. It can optionally include RRC State, User Location Information, and Criticality Diagnostics.

Does this response mean the whole UE context was rebuilt?

No. It confirms in-place modification of an existing context, not full context setup from scratch.