pub fn assert_tool_valid(tool: &Value)
Validates that a tool definition is MCP-compliant.
Panics if the tool is malformed.