use JsonSchema;
use ;
/// One reply the calling client's `McpHandler` produced for a
/// [`super::super::server_request::Request`]. The typed
/// [`super::Payload`] variant pairs by name with the request side;
/// every method-specific result or error rides inside it. `mcp_kind`
/// echoes the request's so the API can sanity-check the routing
/// without trusting `id` alone.
///
/// Wire shape (envelope is `{id, mcp_kind, type, …variant fields…}`
/// after the `#[serde(flatten)]` on `payload`):
///
/// ```json
/// {
/// "id":"…",
/// "mcp_kind":{"type":"objective_ai"},
/// "type":"tools_list",
/// "kind":"ok",
/// "result":{…}
/// }
/// ```