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
For more information about getting (and setting) client and server features, see the ct_capability reference page.