To ascertain some of the client and server features supported by a particular connection, an application calls ct_capability. The ct_capability value parameter returns information about whether the capability is enabled.
This retrieves, among other things:
What datatypes are supported
What types of requests are valid
See the ct_capability reference page.