fn format_rows_response(
rows: Vec<Box<RawValue>>,
max_size: usize,
) -> Result<McpResult, McpRequestError>Expand description
Serialize rows to JSON and enforce the response size cap.
If the serialized response exceeds max_size bytes, returns an error
telling the agent to narrow its query, rather than truncating. The HTTP
SQL endpoint handles max_result_size the same way in sql.rs.