Resources can return any type of data, including strings, JSON objects, and binary data. You use a MIME type parameter to give clients a hint about what kind of data you are returning. Common values include application slash json for structured data, text slash plain for plain text, and application slash pdf for binary files. The MCP Python SDK automatically serializes your return values, so you do not need to manually convert objects to JSON strings. You just return the natural Python data structure, mark the MIME type, and the SDK handles the rest of the wire format.